Make sure everyone can read your text
Light grey text on white, white text on a pastel button, or blue links on a dark background can look elegant in a design file and be unreadable for real users. This contrast checker measures the contrast ratio between any text and background color and tells you instantly whether it meets the Web Content Accessibility Guidelines (WCAG) at level AA and AAA — and if not, it suggests the nearest color that does.
Features
- Contrast ratio from 1:1 to 21:1.
- WCAG 2 AA and AAA results for normal text, large text and UI components.
- Any color format: HEX, RGB, HSL or CSS color names.
- Live preview with headline, body and small text.
- Accessible color suggestions that keep your hue.
- Swap button to check light-on-dark versions.
WCAG requirements at a glance
| Content | AA | AAA |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text (≥ 24 px, or ≥ 19 px bold) | 3:1 | 4.5:1 |
| UI components and graphics | 3:1 | — |
| Logos and decorative text | No requirement | No requirement |
Common combinations
| Text | Background | Ratio | AA normal text |
|---|---|---|---|
| #000000 | #FFFFFF | 21:1 | Pass |
| #767676 | #FFFFFF | 4.54:1 | Pass (lightest grey that passes) |
| #999999 | #FFFFFF | 2.85:1 | Fail |
| #FFFFFF | #0EA5E9 | 2.77:1 | Fail |
| #FFFFFF | #0369A1 | 5.93:1 | Pass |
Related tools
Convert colors between formats with the Color Converter, build a full palette with the Color Palette Generator, or pick exact colors from a screenshot with the Image Color Picker.