What is color contrast (and the WCAG ratios)?
Short answer
Color contrast measures how much text stands out from its background, expressed as a ratio from 1:1 to 21:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text so it stays readable, including for low-vision users.
Contrast as a ratio
Contrast is calculated from the relative luminance of two colors and written as a ratio. Pure black on pure white is the maximum, 21:1; two similar shades might be only 1.5:1 and very hard to read.
The WCAG thresholds
4.5:1— minimum for normal body text (Level AA)3:1— minimum for large text, roughly 18.66px bold or 24px regular (Level AA)7:1— the stricter Level AAA target for normal text3:1— also the minimum for interactive controls and meaningful graphics
A common mistake
Light gray text on white is a frequent failure. It can look elegant in a design mockup but drop below 4.5:1, making it hard to read on phones and in bright light. Test real text colors, not just the headline.