WCAG Contrast Checker
Check the WCAG contrast ratio between a text color and a background color, with a live preview and a clear pass/fail against the WCAG 2.2 AA and AAA thresholds for both normal and large text.
Sample text on this background
How to use it
- Enter a text color and a background color as HEX codes
- Check the large text option if the text is 18pt+ (or 14pt+ bold)
- Read the contrast ratio and the AA/AAA pass or fail result
This is the tool to reach for when choosing accessible color combinations for a website, app, or document, since low-contrast text is one of the most common accessibility failures and can make content unreadable for users with low vision or color blindness, or in bright sunlight on a phone screen. The ratio is computed locally using the exact relative-luminance formula from the WCAG specification, so results match what an automated accessibility audit would report, with nothing ever sent to a server.
FAQ
4.5:1 for normal text, 3:1 for large text.
7:1 for normal text, 4.5:1 for large text.
No, everything is calculated locally in your browser.