WCAG Contrast Checker
Check two colors against WCAG contrast thresholds for text and interface components.
Runs on your device. Nothing you add is uploaded.
Contrast ratio
15.17:1
Rounded for display
Text preview
Large text
Normal text
5 rows
| WCAG check | Minimum | Result |
|---|---|---|
| AA normal text | 4.5:1 | Pass |
| AA large text | 3:1 | Pass |
| AAA normal text | 7:1 | Pass |
| AAA large text | 4.5:1 | Pass |
| AA non-text contrast | 3:1 | Pass |
How to use WCAG Contrast Checker
- Choose the foreground and background colors.
- Read the ratio and compare it with the relevant threshold.
- Adjust the colors until the relevant row passes.
Questions
What counts as large text?
WCAG generally treats text as large at 18 points (24 CSS pixels), or 14 points (about 18.7 CSS pixels) if bold.
How are pass and fail calculated?
The comparison uses the full ratio. A rounded result can look like the threshold even when the exact ratio is slightly below it.
What should I check for gradients?
Compare the text against the background where it appears, including the area with the lowest contrast.
How this works
Calculates the WCAG 2 relative luminance and contrast ratio for two opaque sRGB colors.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy