Color Contrast Checker for WCAG Accessibility
Check whether your text and background colours meet WCAG accessibility standards. Enter any two colours with the picker or a hex code and instantly see the contrast ratio, plus clear pass or fail results for AA and AAA on normal text, large text and UI components. A live preview shows real text in your colours, and every colour is converted to HEX, RGB and HSL with tints and shades — all in your browser, free and private.
Enter a hex code such as #1D5BD8 or #FFF, or use the picker.
Enter a hex code such as #1D5BD8 or #FFF, or use the picker.
Your results will appear here
Pick a text and background colour to check the contrast ratio.
Live preview
Large heading sample
This is normal body text. Check that it stays comfortable to read on this background before you ship it.
Contrast ratio The ratio between the two colours' relative luminance, from 1:1 (identical) to 21:1 (black on white).
—
WCAG 2.1 compliance
| Level | Min ratio | Result |
|---|---|---|
| AA · Normal text | 4.5:1 | |
| AA · Large text | 3:1 | |
| AAA · Normal text | 7:1 | |
| AAA · Large text | 4.5:1 | |
| UI components & graphics | 3:1 |
Large text = 18pt (24px) regular or 14pt (18.66px) bold and above.
Text colour
| HEX | |
|---|---|
| RGB | |
| HSL |
Tints & shades (click to apply)
Background colour
| HEX | |
|---|---|
| RGB | |
| HSL |
Tints & shades (click to apply)
How to use
- Pick a text (foreground) colour with the swatch, or type a hex code like #1D5BD8.
- Pick a background colour the same way, or use Swap to flip the two.
- Read the contrast ratio and the AA / AAA pass or fail badges for normal and large text.
- Use the live preview to judge real readability on your background.
- Click any tint or shade to apply an accessible variant, then copy the summary.
Features
- WCAG 2.1 contrast ratio with AA, AAA and UI-component pass/fail results
- Separate checks for normal text, large text and graphical objects
- Live preview of large and body text in your exact colours
- HEX, RGB and HSL conversion for both colours
- Tint and shade swatches you can click to apply instantly
- 100% in-browser — your colours never leave your device