The WCAG thresholds: 4.5:1, 3:1, and 7:1
Read more
The numbers come from studies of typical vision loss. A ratio of 4.5:1 compensates for the contrast sensitivity lost with moderately low vision or aging eyes, which is why WCAG AA requires it for normal body text. Large text has thicker strokes that stay legible at lower contrast, so its AA threshold relaxes to 3:1, the same figure WCAG 2.1 applies to icons and UI component boundaries. AAA raises normal text to 7:1 for audiences and contexts that need more headroom.
In practice, treat 4.5:1 as the floor for anything people read and 3:1 as the floor for everything else that carries meaning. Passing AA is the widely accepted legal and practical baseline; AAA is worth targeting for long-form reading, small type, or products with older audiences. A pair that fails by a little usually gets there by darkening the darker color slightly rather than redesigning the palette.