Level AA
The bar almost every accessibility policy and procurement rule actually enforces. 4.5 to 1 for body text, 3 to 1 for large text and for interface elements like icons and the edges of form controls.
Pick a text color and a background and see whether the pair is legible. A contrast ratio compares how much light two colors emit, on a scale from 1 to 1 for identical colors up to 21 to 1 for black on white. WCAG asks for 4.5 to 1 on body text.
Closest passing color to the one you chose, holding the hue and moving only lightness:
Darker4.59:1
1 lightness point away. Click to use it.
Large text at 24 pixels
Body text at 16 pixels. Contrast is a property of a pair rather than of one color, so a color that fails against this background may be perfectly readable against another.
Small print at 13 pixels, which is where contrast usually fails first.
Two levels, and a size boundary that catches people out more often than the numbers do.
The bar almost every accessibility policy and procurement rule actually enforces. 4.5 to 1 for body text, 3 to 1 for large text and for interface elements like icons and the edges of form controls.
The enhanced bar, at 7 to 1 and 4.5 to 1. Worth aiming for on long-form reading and anything a person will be looking at for a while, but rarely mandated.
24 pixels and above, or 19 pixels and above if the text is bold. This is the line people miss most often, because a heading at 20 pixels regular is still body text as far as the standard is concerned.
It knows nothing about font weight, letter spacing, screen brightness or ambient light. A thin weight at 4.5 to 1 can be markedly harder to read than a medium weight at the same number. Use the preview as well as the score.