Check contrast whenever you're choosing text colors for a design system, building a component library, or auditing an existing site for accessibility. Low-contrast text is the most common WCAG failure — it affects the 2.2 billion people worldwide with visual impairments including 300 million with color vision deficiency. Use this before shipping any color decision that involves text. Alternative: WebAIM's contrast checker has been the gold standard for years but requires page reloads per check — this tool updates live as you pick colors.
Real-world pass/fail examples:
**Black (#000) on White (#fff):** 21:1 — passes AAA with room to spare. **Mid-gray (#767676) on White:** 4.54:1 — barely passes AA Normal, fails AAA. This is the most common accessibility trap — designers pick a gray they think looks fine but it fails WCAG by a hair. **White on Blue (#3b82f6):** 4.63:1 — passes AA Normal, good for buttons. **Light text (#94a3b8) on Dark (#1e293b):** 3.14:1 — fails AA Normal, passes only AA Large. Use brighter text for body copy.
Last updated: 2026-05-11