Color Contrast Checker
Color Contrast Checker
Check the WCAG contrast ratio between a text colour and a background colour, and see whether the pair passes AA and AAA for normal and large text.
Enter a valid HEX code, such as #0E5A68.
Enter a valid HEX code, such as #FFFFFF.
Large text means at least 24px, or at least 19px bold. Everything is calculated in your browser; no colour data is sent anywhere.
A heading in your colours
This paragraph is normal body text. If you can read it comfortably at a glance, your pair works for real content: articles, product descriptions, menus and forms.
This is small text: captions, footnotes and labels. Small text is the first thing a weak pair breaks.
Sample buttonWCAG Contrast Ratios: Pass Levels, Examples and Fixes
A colour pair can look great in a palette and still be unreadable as text. Contrast is the measured brightness difference between text and its background, and the checker above turns it into one number - the contrast ratio - plus a clear pass or fail against WCAG, the accessibility standard designers and auditors work to. This guide explains what the numbers mean and how to fix a pair that fails.
How to check a colour pair
- Enter the text colour. Use the picker or type the HEX code of the colour your words will appear in.
- Enter the background colour. This is the colour behind the text: a page background, a button fill, a banner or a card.
- Read the ratio and the four badges. The ratio runs from 1:1 (identical colours) to 21:1 (black on white). The badges show AA and AAA results for normal and large text separately.
- Adjust one colour at a time. Darken the text or lighten the background in small steps and watch the preview until the pair passes AA. Swapping the two colours is worth one click - some pairs pass in one direction only.
Worked examples: real pairs, real ratios
| Text | Background | Ratio | AA normal | AAA normal |
|---|---|---|---|---|
| #000000 | #FFFFFF | 21.00:1 | Pass | Pass |
| #0A4450 | #FFFFFF | 10.74:1 | Pass | Pass |
| #FFFFFF | #0E5A68 | 7.83:1 | Pass | Pass |
| #767676 | #FFFFFF | 4.54:1 | Pass | Fail |
| #0D1F24 | #A9D94B | 10.26:1 | Pass | Pass |
| #FFFFFF | #A9D94B | 1.65:1 | Fail | Fail |
What AA and AAA actually require
WCAG sets two conformance levels for text contrast. AA is the level most accessibility laws and professional standards require. AAA is the enhanced level, recommended where many readers have low vision.
- Normal text: at least 4.5:1 for AA, and 7:1 for AAA.
- Large text: at least 3:1 for AA, and 4.5:1 for AAA. Large means at least 24px, or at least 19px when bold.
- Body copy is almost never large text. Paragraphs, captions, menu items and form labels are judged at the normal-text thresholds, which is why the checker reports the two sizes separately.
Contrast is a floor, not a finish line. Very thin fonts, tiny sizes and text over busy photos can defeat a passing ratio, so treat AA as the minimum to ship, not a guarantee.
How to fix a failing pair
- Move one colour, not both. Keep the colour that carries your brand and adjust the other - darkening the text in small steps fixes most pairs.
- Use a deeper shade of the same colour. A darker shade of your brand colour usually passes where the bright version fails, and still reads as the same brand.
- Put text on a solid panel. Over a photo or gradient the ratio changes from word to word; a solid card behind the text gives you one honest number to check.
- Check every state, not just the default. Hover states, visited links and buttons on different backgrounds are separate pairs, and each deserves its own check.
Frequently asked questions
What is a good contrast ratio for body text?
What counts as large text in WCAG?
Why does white text on bright colours fail so often?
Does colour contrast affect SEO?
What is the difference between this checker and the Brand Color Tester?
Build the palette, then prove every pair
A palette is a promise; contrast is the proof. When your main text-and-background pair passes AA, test your buttons, links and headings the same way - it takes seconds per pair. If you are still choosing the colours themselves, the Color Palette Generator and the Color Palette Design Generator build complete schemes, and every HEX code they give you can be pasted straight into the checker above.