Why Contrast Matters Beyond Accessibility
Good color contrast benefits everyone — not just users with visual impairments. Low-contrast text is harder to read in bright light on mobile screens, on older monitors, or when users are tired. High contrast improves reading speed and reduces eye strain for all users.
How Contrast Ratio Is Calculated
The WCAG contrast ratio formula compares the relative luminance of two colors. Luminance = 0.2126R + 0.7152G + 0.0722B (after gamma correction). The ratio ranges from 1:1 (identical colors, no contrast) to 21:1 (black on white, maximum contrast).
WCAG Minimum Requirements
- AA Normal text: 4.5:1 (most text on most websites)
- AA Large text: 3:1 (18pt+ or bold 14pt+)
- AAA Normal text: 7:1 (stricter standard)
- UI components: 3:1 minimum
Test Your Colors
- Open Contrast Checker.
- Enter your text color (foreground) and background color.
- See the calculated ratio and WCAG AA/AAA pass/fail results.
- Adjust colors until you pass the required level.