Accessibility Contrast Checker
Check colour contrast against the WCAG AA and AAA thresholds.
contrast ratio
Large text sample
Normal body text. The quick brown fox jumps over the lazy dog.
This tool needs JavaScript enabled to run in your browser.
What this tool does
This tool measures the contrast ratio between a text colour and a background colour, and shows whether that pair meets the WCAG thresholds for normal text, large text and user-interface components. Pick colours or type any hex, rgb() or named value, and the result updates as you go.
How to read the ratio
Contrast is expressed as a ratio from 1:1 (no contrast) to 21:1 (black on white). WCAG 2.1 and 2.2 set these minimums:
- 4.5:1 for normal text (level AA).
- 3:1 for large text (level AA), and for user-interface components and meaningful graphics.
- 7:1 for normal text and 4.5:1 for large text at the stricter level AAA.
Large text means at least 18pt, which is about 24px, or 14pt bold, about 18.66px bold. Anything smaller is treated as normal text.
What it checks, and what it cannot
This checks one foreground and background pair. It cannot tell you whether a whole page is accessible. A real page has many colour pairs, text over images and gradients, hover and focus states, and disabled controls, and contrast is only one of the WCAG success criteria. A passing ratio here is necessary, not sufficient. Translucent colours are handled by compositing the text over the background and the background over white, which matches how a browser paints them.
Common use cases
- Checking a text and background pair from a design before it ships.
- Finding a shade that passes AA without leaving your brand palette.
- Confirming a reported contrast issue and testing a fix.
Frequently asked questions
- Does passing mean my site is accessible?
- No. This checks one text and background pair. A whole page has many pairs and many other accessibility requirements, so a passing ratio is necessary but not sufficient.
- What counts as large text?
- At least 18pt (about 24px), or 14pt bold (about 18.66px bold). Smaller text is treated as normal text, which needs a higher ratio.
- How are see-through colours handled?
- A translucent text colour is composited over the background, and a translucent background over white, which matches how a browser paints them.
Learning resources
Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.