Color Contrast Checker
Check whether your text color is readable on its background. The tool shows the contrast ratio, tells you if it passes WCAG AA and AAA, and suggests the closest color that does.
How to use the color contrast checker
- Enter or pick the text color and the background color.
- Read the ratio and the pass or fail result for normal text, large text and buttons.
- If it fails, use the suggested color or swap and adjust the colors.
The Web Content Accessibility Guidelines (WCAG) set minimum contrast ratios so that people with low vision or color blindness can read your content. Level AA needs at least 4.5:1 for normal text and 3:1 for large text (24 pixels, or 18.66 pixels bold, and above) and for interface parts such as buttons. Level AAA needs 7:1 for normal text and 4.5:1 for large text. Light grey text on white is the most common failure.
Frequently asked questions
What contrast ratio do I need?
At least 4.5:1 for normal text to meet WCAG AA. Aim for 7:1 where you can.
What counts as large text?
Text of 24 pixels or more, or 18.66 pixels or more in bold.
Does it work with transparent colors?
Enter solid colors. For transparent text, mix it with the background first and test the result.
