Tools / Contrast checker
Contrast checker
Pick a text color and a background to see the ratio and which WCAG levels pass.
Large sample text
Normal body text sample, the quick brown fox.
How to use it
Three quick steps.
- Pick your text color and your background color.
- Read the ratio and the pass or fail results.
- Adjust a color until you reach at least 4.5:1 for normal text.
Good to know
Get better results.
- Large text only needs 3:1, but large means about 24px regular or 18.66px bold, or bigger.
- Check hover, focus and disabled states too.
- Text over images needs checking at the busiest part of the image.
Common questions
What contrast ratio do I need?
For WCAG AA, 4.5:1 for normal text and 3:1 for large text. For AAA, 7:1 and 4.5:1.
Does contrast apply to logos?
Text that is part of a logo or brand name is exempt from WCAG contrast requirements.
How is the ratio calculated?
It compares the relative luminance of the two colors. Our blog post on WCAG contrast explains the formula step by step.
More tools
Keep going with a related tool.