Why contrast matters
Up to 8% of users have some form of color vision deficiency, and many more have temporary impairments — bright sunlight on a screen, a cracked phone display, an aging monitor. Designing with sufficient contrast isn’t a niche accessibility checkbox; it’s the default for software that wants to be readable.
WCAG 2.2 — the current accessibility standard cited by ADA lawsuits, EAA enforcement in the EU, and platform store requirements — codifies this with explicit luminance ratio thresholds.
What ratio do I need?
| Text size | AA (baseline) | AAA (enhanced) |
|---|---|---|
| Normal (under 18.66px bold or 24px regular) | 4.5:1 | 7:1 |
| Large (18.66px+ bold or 24px+ regular) | 3:1 | 4.5:1 |
Hit AA at minimum. AAA is for accessibility-critical contexts.
Use cases
- Design QA: paste your brand colors against your background colors and verify every combination before building components.
- Component review: when a teammate proposes a new color, paste it through the checker before merging.
- Tailwind palette generation: pick the lightest text color that still passes AA against your accent.
- Accessibility audits: validate every color pair on a page during a manual a11y review.