Colour contrast checker for WCAG AA and AAA
Text you read easily on your office monitor is often unreadable on a phone in bright sunlight, or for someone with low vision. The contrast ratio turns that judgement into a number.
Enter a text colour and a background colour to see the ratio and whether the pair passes WCAG AA and AAA for normal and large text. All calculations happen in your browser.
Colours
Large heading
This is sample text at normal size. If you cannot read it comfortably, neither can your visitors.
Result
Contrast ratio
14.68:1
- Normal text, AAmin. 4.5:1Pass
- Normal text, AAAmin. 7:1Pass
- Large text, AAmin. 3:1Pass
- Large text, AAAmin. 4.5:1Pass
Large text means at least 18pt (about 24px), or bold text of at least 14pt (about 18.5px). Everything is calculated in your browser.
How to use it
- 1 Enter the HEX code of your text colour or choose it with the colour picker.
- 2 Do the same for the background colour.
- 3 Read the ratio and the four pass marks: normal and large text at AA and AAA.
Frequently asked questions
What does a contrast ratio of 4.5:1 mean? +
The number describes the difference in brightness between two colours. The highest possible ratio is 21:1 (black on white) and 1:1 means two identical colours. A ratio of 4.5:1 is the minimum WCAG level AA requires for normal text.
What is the difference between AA and AAA? +
AA asks for at least 4.5:1 for normal text and 3:1 for large text. AAA raises that to 7:1 and 4.5:1. AA is the level every business website should aim for; AAA is mostly expected of public services and content for a very broad audience.
What counts as large text? +
Text of at least 18pt, roughly 24px, or bold text of at least 14pt, roughly 18.5px. Larger text passes with a lower ratio because thicker letter strokes are easier to read on their own.
Is colour contrast a legal requirement in the UK? +
For many organisations, yes. Public sector websites must meet WCAG AA under the 2018 accessibility regulations, and the Equality Act 2010 requires service providers to make reasonable adjustments for disabled people, which is widely read as covering websites. Meeting AA is the sensible baseline for any business.
Does the rule apply to buttons and icons too? +
Yes, with a different threshold. For graphical elements that carry information, such as form field borders, icons and button outlines, WCAG asks for at least 3:1 against the neighbouring colour. A light grey border on white almost never meets it.