Free tool
Contrast checker
Check whether your text is easy to read on its background, by the rules of WCAG 2.1. Everything runs in your browser, nothing is sent.
This is how your text reads on this background.
Large text from 24 px
Contrast ratio:
- AA, normal text 4.5 : 1–
- AA, large text 3 : 1–
- AAA, normal text 7 : 1–
- AAA, large text 4.5 : 1–
- Controls and graphics 3 : 1–
How it works
What contrast means
WCAG compares the relative luminance of both colours. The ratio runs from 1 : 1 (same colour) to 21 : 1 (black on white). Level AA asks for at least 4.5 : 1 for normal text and 3 : 1 for large text (from 24 px, or 18.5 px bold).
Level AA is the standard of EN 301 549 and so of the European Accessibility Act. The same 3 : 1 applies to borders of input fields, icons and charts (WCAG 1.4.11).
Good contrast helps not only people with low vision but everyone reading their phone in the sun.
Contrast is one of more than 50 rules
Our accessibility check tests every page of your website in a real browser and shows what is missing and how to fix it.
Questions about contrast
What contrast does WCAG require at least?
4.5 : 1 for normal text (level AA), 3 : 1 for large text from 24 px or 18.5 px bold. Level AAA asks for 7 : 1 and 4.5 : 1.
Does it apply to buttons and icons too?
Yes. Borders of input fields, icons and parts of graphics needed to understand them need at least 3 : 1 against their surroundings (WCAG 1.4.11).
Are my colours stored or sent?
No. The calculation runs entirely in your browser.
Does contrast apply to text on images?
Yes. Then the lightest or darkest part of the image behind the text counts. A semi-transparent panel behind the text helps.