Color Contrast Checker
Enter a text color and a background color to get the exact contrast ratio, plus a clear pass or fail against every WCAG 2.1 level.
Large text at 24px
Normal body text at 16px. The quick brown fox jumps over the lazy dog.
Small print at 13px, which is where contrast problems usually bite.
About the contrast checker
Contrast is the accessibility rule that gets broken most often, usually by well-meaning designers who picked a light gray because it looked calm. WCAG 2.1 sets a minimum ratio of 4.5:1 for normal body text and 3:1 for large text at level AA, rising to 7:1 and 4.5:1 at level AAA. This checker calculates the ratio using the official relative luminance formula and shows the result against each threshold, so you can nudge a color until it passes rather than guessing.
How to use the contrast checker
- Set the foreground color using the picker or by typing a HEX value.
- Set the background color the same way.
- Read the contrast ratio and the AA and AAA results for both normal and large text.
- Adjust either color until the combination passes the level you are targeting.