Large text sample
Normal text sample — the quick brown fox jumps over the lazy dog.
- WCAG AA — normal text needs 4.5 : 1
- WCAG AA — large text needs 3 : 1
- WCAG AAA — normal text needs 7 : 1
- WCAG AAA — large text needs 4.5 : 1
Thresholds: WCAG AA needs 4.5 : 1 for normal text and 3 : 1 for large text; WCAG AAA needs 7 : 1 for normal text and 4.5 : 1 for large text. Large text means 18pt (24px) or larger, or 14pt (about 18.66px) or larger and bold. A translucent foreground is worked out over the background, and a translucent background over white, before the ratio is calculated. Passing contrast alone does not make a website accessible — keyboard navigation, focus states, alt text, headings and plain language matter just as much.
What is the WCAG Color Contrast Checker?
The WCAG Color Contrast Checker is a free online tool that tells you whether your text is readable against its background. Pick a foreground colour and a background colour, and it works out the contrast ratio using the correct WCAG relative luminance formula, shows you a live preview of sample text in both colours, and gives you a pass or fail for all four WCAG levels: AA normal text, AA large text, AAA normal text and AAA large text.
It is made for anyone who chooses colours on a website: designers picking a palette, developers styling buttons and links, bloggers choosing a theme, and anyone who has ever wondered whether their light-grey text on a white background is actually readable. There is nothing to install and nothing to sign up for. Everything runs in your browser, and your colours never leave your device.
One honest note, which the tool states plainly: passing contrast alone does not make a website accessible. Keyboard navigation, focus states, alt text, headings and plain language matter just as much. Contrast is one piece of accessibility, not the whole thing.
How to use the WCAG Color Contrast Checker
- Pick a foreground colour in the Foreground fieldset. Use the colour picker, or type a HEX value directly into the HEX box. The HEX and RGB values are shown below, each with a Copy button.
- Pick a background colour the same way in the Background fieldset.
- Set the opacity for either colour with its slider, if you need a translucent colour. A translucent foreground is worked out over the background, and a translucent background over white, before the ratio is calculated.
- Read the results on the right. The live preview shows a large text sample and a normal text sample in your two colours. Below it, the contrast ratio is shown, followed by the four WCAG results, each marked pass or fail.
- Swap colors exchanges the foreground and background, and Reset brings back black on white.
Worked example
Start with the defaults: black text (#000000) on a white background (#FFFFFF). The tool reports a contrast ratio of 21:1, and all four results pass — AA normal, AA large, AAA normal and AAA large. That is the maximum possible ratio, and it is why black on white is the most readable combination there is.
Now try a mid-grey. Set the foreground to #767676 on the same white background. The ratio drops to 4.54:1. That passes AA for normal text, which needs 4.5:1, but only just — and it fails AAA for normal text, which needs 7:1. It is a useful reminder that a grey that looks fine on a design mock-up can be right on the edge of readable.
Go lighter still: #999999 on white gives a ratio of 2.85:1, which fails even AA for normal text. Light grey body text on white is one of the most common contrast failures on the web.
One more, from this site’s own palette: the crimson #e62f41 on white gives 4.33:1 — just below the 4.5:1 that AA normal text needs. The darker crimson #b81f2e on white gives 6.42:1, which passes AA normal text comfortably. A small darkening of a brand colour is often all it takes to go from failing to passing.
The four thresholds
| Level | Normal text | Large text |
|---|---|---|
| WCAG AA | 4.5 : 1 | 3 : 1 |
| WCAG AAA | 7 : 1 | 4.5 : 1 |
Large text means 18pt (24px) or larger, or 14pt (about 18.66px) or larger and bold. Large text gets a lower bar because bigger, bolder letters are easier to read at lower contrast.
Where to use a contrast checker
Body text and paragraphs
This is the most important use. Body text is read for minutes at a time, and low contrast is tiring even for people with good eyesight — and unreadable for people with low vision. Check your body text colour against your page background first. If it passes AA normal text at 4.5:1, you have a solid base.
Buttons and links
Button text and link text are often a brand colour on a white or coloured background, and brand colours are frequently too light. Check the exact combination you use — the button’s text colour against the button’s background, and the link colour against the page background. A button that looks striking in a design tool can be unreadable in practice.
Brand colours
Designers often pick a palette for how it looks, not for how it reads. Run each brand colour against white and against your dark backgrounds before you commit to it. As the crimson example above shows, a slightly darker version of the same colour can be the difference between passing and failing.
Tips for passing contrast without ruining the design
- Aim for AA normal text (4.5:1) as your baseline. It is the level most accessibility guidelines require, and it is achievable for almost any design. AAA normal text (7:1) is stricter and worth aiming for on body text, but it is not always practical for brand colours.
- Darken, don’t redesign. When a colour fails, you rarely need a new colour. Darkening the same hue by a step or two usually lifts the ratio past the threshold while keeping the design intact — like the crimson going from 4.33:1 to 6.42:1.
- Check large text separately. Headings and large bold text only need 3:1 for AA, so a colour that fails for body text may still be fine for a big heading. Use the large-text result for headings, not the normal-text one.
- Remember opacity changes the ratio. A translucent colour is not the colour you picked — it is that colour mixed with whatever is behind it. The tool composites it for you before calculating, so set the opacity slider to the value you actually use and read the ratio that results.
- Test the real combination, not the swatch. A colour that passes on white may fail on your actual background. Check the exact foreground and background your visitors will see.
Frequently asked questions
What is a contrast ratio?
It is a number from 1:1 to 21:1 that says how different two colours look. 1:1 means the colours are identical and the text is invisible. 21:1 is black on white, the maximum difference. The ratio is worked out from the relative luminance of the two colours, using the formula the WCAG standard defines — not by eyeballing it.
What counts as large text?
Large text means 18pt (24px) or larger, or 14pt (about 18.66px) or larger and bold. Large text gets a lower threshold — 3:1 for AA instead of 4.5:1 — because bigger, bolder letters are easier to read at lower contrast.
Why does the opacity slider change the ratio?
Because a translucent colour is not the colour you picked. A foreground at 50% opacity is that colour mixed half-and-half with the background behind it, so the colour your visitors actually see is different from the one in the picker. The tool composites the translucent colour over what is behind it — the background for the foreground, white for the background — and then calculates the ratio of the result.
Does passing the contrast check mean my site is accessible?
No. Passing contrast is one piece of accessibility, and an important one, but a site can pass every contrast check and still be inaccessible — if it cannot be used with a keyboard, if images have no alt text, if headings are out of order, or if the language is needlessly complex. Use this checker alongside the Alt Text Checker and the Heading Structure Checker, not instead of them.
Which level should I aim for?
AA normal text (4.5:1) is the usual target, and it is the level most guidelines and laws require. AAA normal text (7:1) is stricter and worth aiming for on body text when you can. For large headings, AA large text (3:1) is often enough.
Conclusion
Colour contrast is one of those things that is invisible when it is right and miserable when it is wrong. Light grey text on white, a pale brand colour on a button, a link that disappears into the background — these are the failures visitors notice, even if they cannot name them. This WCAG Color Contrast Checker gives you the exact ratio, the live preview, and a clear pass or fail for all four WCAG levels, with opacity handled properly and HEX and RGB values ready to copy. Check your body text first, then your buttons and links. And when your colours pass, check the rest of the page too — the Color Picker will help you find the right shades, and the Alt Text Checker will make sure your images are described for everyone.

