Contrast Checker
Check the contrast ratio of a text and background colour against WCAG 2 AA and AAA, with a live preview and a suggested passing colour. Free contrast checker.
Runs in your browser. Nothing is uploaded.
About Contrast Checker
Enter a text colour and a background colour to get their contrast ratio, from 1:1 (identical) to 21:1 (black on white). The checker marks each WCAG 2 level as pass or fail: 4.5:1 for normal text at AA, 7:1 at AAA, 3:1 for large text and for icons and form borders.
If your pair fails AA for normal text, the tool searches lighter and darker versions of the same text colour and offers the closest one that passes. Click it to apply it, then check the preview to make sure you still like it.
The ratio uses the relative luminance formula from the WCAG specification, the same maths browser dev tools and accessibility auditors use.
How to use Contrast Checker
- Open the tool above and add your file or text.
- Adjust the options to suit.
- Download or copy the result. Nothing is uploaded at any point.
Frequently asked questions
What counts as large text?
WCAG defines large text as at least 24px regular, or 18.66px (14pt) bold. Large text only needs 3:1 for AA.
Does contrast apply to buttons and icons?
Yes. WCAG 2.1 asks for 3:1 between interface components, such as input borders and icons, and the colours next to them.
Is AA enough?
AA is the level most laws and policies require. AAA is stricter and not always achievable for every colour in a brand.
Is Contrast Checker free and private?
Yes. Contrast Checker is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.