What counts as large text in WCAG?
Text that is at least 18 points (about 24 px), or 14 points (about 18.7 px) in bold. For that size, WCAG 2.2 accepts a minimum contrast of 3:1 at level AA.

WCAG contrast measures the luminance difference between text and background as a ratio from 1:1 to 21:1. Level AA needs at least 4.5:1 for normal text and 3:1 for large text. Level AAA needs 7:1 and 4.5:1.
Updated
Click a HEX to copy it · lock to keep it
Each cell shows the column color as text on the row color as background.
Click a shade to copy its HEX.
Saved in this browser only. Click a palette to load it.
Text that is at least 18 points (about 24 px), or 14 points (about 18.7 px) in bold. For that size, WCAG 2.2 accepts a minimum contrast of 3:1 at level AA.
Add 0.05 to the relative luminance of each color, then divide the lighter value by the darker one. The result runs from 1:1 (the same color) to 21:1 (black on white).
Yes. WCAG success criterion 1.4.11 asks for at least 3:1 for interface components and graphics needed to understand the content, such as icons, input borders and chart lines.