Colour contrast checker (WCAG AA and AAA)
Choose a text colour and a background colour to see their contrast ratio and whether they pass the WCAG accessibility guidelines: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1. Everything is worked out in your browser as you change the colours.
Last updated 12 November 2026
How to check contrast
- 01Pick the text colour. Use the colour picker or type a HEX code such as #122E27.
- 02Pick the background colour. The same, for the colour behind the text.
- 03Read the result. The ratio and a pass or fail for each WCAG level update as you change either colour.
Questions people ask
What contrast ratio do I need?
WCAG 2 level AA asks for at least 4.5:1 for normal text and 3:1 for large text (24 px, or 19 px bold) and for icons and controls. Level AAA asks for 7:1 and 4.5:1.
How is the ratio worked out?
From the relative luminance of the two colours, as WCAG 2 defines it: (lighter + 0.05) divided by (darker + 0.05). It runs from 1:1 (the same colour) to 21:1 (black on white).
Does it matter which colour is the text?
Not for the ratio: swapping them gives the same number. It matters for how the text looks, so preview both ways.
More free tools
Your brand, readable everywhere
Start with your own brand
New here: 1,000 free credits, no card