Enter a text colour and a background colour — get the WCAG contrast ratio with all four AA/AAA thresholds, the 3:1 non-text check, and a one-click fix. No signup.
Headline text looks like this
Body text at normal size. If you can read this comfortably, the pair is probably fine — the ratio below says for sure.
Small text at 12px — captions, footnotes and labels live here, and this is where low contrast hurts first.
Excellent — passes AAA for all text sizes.
| Check | Needs | Result |
|---|---|---|
| AA — normal text | 4.5 : 1 | |
| AA — large text | 3 : 1 | |
| AAA — normal text | 7 : 1 | |
| AAA — large text | 4.5 : 1 | |
| UI components & icons (1.4.11) | 3 : 1 |
One click finds the nearest same-hue text colour that passes the chosen level, and shows the before/after pair. You still apply it to your design yourself — the checker changes nothing on your site.
Drag to nudge the text colour lighter or darker without changing its hue — the ratio updates live, so you can walk it to the target yourself. Changing the text colour resets the slider.
A passing ratio says nothing about colour blindness — two colours that pass can still be indistinguishable to some readers. These three simulations show your exact pair as it appears under the three common types. The simulation is an approximation, not a diagnosis.
If the pair looks identical in any simulation, add something other than colour — an icon, a label, or a pattern. Red for error and green for success excludes colour-blind users on its own.
Text over a gradient has no single ratio — it changes across the background. This checks your text colour at five points across a gradient (both ends, the middle, and the two quarter-points). Check the worst point, not the average — and add a scrim if either end fails. Built for gradients from the Gradient Generator.
A design system has hundreds of pairs, and single-pair checkers test one at a time. Paste one HEX per line (up to 10 each) and get the full pass/fail matrix for AA normal text (4.5:1). Everything runs in your browser.
Low-contrast text is the single most common accessibility failure on the web. The usual suspects turn up in audit after audit: light grey body text that looks refined on a bright calibrated monitor and becomes unreadable on a phone in daylight; placeholder greys that are pale by design and then get misused as labels, so the information disappears for low-vision users; brand colours that fail and nobody will change them (one famous coffee brand's bag scored below 2.0 on every text pairing); and the greys that fail by a hair — #767676 passes, #777777 fails, and nobody can tell them apart by eye. Designers discover these in a Lighthouse report or an accessibility audit, long after the palette was locked. What people want is a thirty-second check they can run before shipping: two colours in, a ratio and a pass/fail out, plus a concrete suggestion for the shade that would pass. Picked a colour somewhere else? Grab it in the Color Picker, sample it from a photo in the Color Picker from Image, or mix it in the Color Mixer — then test the pair here.
WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text (24px, or about 19px bold); AAA needs 7:1 and 4.5:1, and buttons, icons and borders need 3:1. Enter your text and background colours above and this page computes the ratio with the official formula and shows pass or fail for all five checks. Free, no signup.
The contrast ratio comes from the relative luminance of the two colours — roughly, how bright each one is to the human eye — through the formula (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter colour. Black on white is the maximum, 21:1. The thresholds are not rounded: 4.49:1 does not meet 4.5:1.
Pick the text colour and the background colour, or type HEX codes. Try a preset pair or a row from the grey cheat-sheet to see a common failure.
The big number is the contrast ratio. The table shows pass or fail for AA and AAA, normal and large text, plus the 3:1 check for UI components and icons.
Press "Fix it for me" for the nearest same-hue shade that passes, or drag the lightness slider to walk the text colour to the target yourself. Then check the pair in the colour-blindness simulation.
The single most-shared fact in the contrast guides: the lightest pure grey that passes AA on white is #767676 at 4.54:1 — and one step lighter, #777777 at 4.47:1, fails. Users eyeball it and miss by 0.03. The table below lists the greys that trip people up, with their exact ratios. Press "Test" on any row to load that pair into the checker above.
| Grey | On | Ratio | AA normal (4.5:1) | AA large (3:1) | |
|---|---|---|---|---|---|
| #767676 | white | 4.54:1 | ✓ Pass — lightest passing grey | ✓ Pass | |
| #777777 | white | 4.47:1 | ✗ Fail — one step too light | ✓ Pass | |
| #999999 | white | 2.84:1 | ✗ Fail | ✗ Fail — even large text | |
| #9CA3AF (Tailwind gray-400) | white | 2.54:1 | ✗ Fail | ✗ Fail | |
| #6B7280 (Tailwind gray-500) | white | 4.83:1 | ✓ Pass | ✓ Pass | |
| #6B7280 (Tailwind gray-500) | gray-100 #F3F4F6 | 4.39:1 | ✗ Fail — passes on white, fails in a card | ✓ Pass | |
| #767676 | #F5F5F5 | 4.16:1 | ✗ Fail — the lightest passing grey fails on off-white | ✓ Pass | |
| #D1D5DB (Tailwind gray-300) | white | 1.47:1 | ✗ Fail | ✗ Fail — as a form border, the field basically is not there |
And the rule behind the table: always check text against the surface it actually sits on. A grey that passes on white can fail inside a card, and a border that is fine as decoration fails as a form field.
Do not throw the palette away. Three fixes keep the brand intact: adjust lightness, not hue — keep the brand's hue and darken the text shade slightly on light backgrounds (or lighten it on dark ones); increase the text size — a pair at 3.8:1 fails AA for normal text but passes for large text at 3:1, so 24px (or 19px bold) can resolve it without changing a colour; or use the brand colour as an accent, not as text — keep it for borders, icons and backgrounds, and set the text in a darker variant of the same hue. The "Fix it for me" button does the lightness walk for you: it keeps your hue and finds the nearest shade that passes your chosen level. For text over a photo, none of this applies directly — the background is not one colour, so add a semi-transparent dark overlay or a solid block behind the text and test the worst-case region, not the average.
AA is the level legislation points to: UK public-sector regulations, the European Accessibility Act (via EN 301 549), and Section 508 in the US. Failing those thresholds is not just bad UX — it is a legal liability under the ADA and Section 508. AAA is the enhanced level; most organisations aim for AA because AAA is not achievable or practical in all cases. The non-text rule is the one people forget: since WCAG 2.1, criterion 1.4.11 requires UI components, icons, focus indicators, chart lines and checkbox outlines to be at least 3:1 against adjacent colours. And the scale of the problem is large: WebAIM Million 2024 found 83.6% of home pages had at least one contrast error (cited by tuwebaccesible.es), while wcagsafe.com cites roughly 79-81% of home pages from the annual WebAIM Million analysis — the two sources report different years and rounds, so each figure belongs with its source.
No. Contrast is one criterion, and it is necessary but not sufficient. Colour-only meaning (red versus green with no other cue), focus visibility, and text over images all need their own checks. A passing ratio says nothing about colour blindness — two colours that pass can still be indistinguishable to some readers — which is why this page shows the simulation next to the ratio. Automated checkers catch only a fraction of real accessibility failures: a pass here means the colour pair is fine, not that the page is accessible. It is still the fastest check you can run, and the one that catches the most common failure first.
WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text. AAA asks for 7:1 for normal text and 4.5:1 for large text. The maximum possible ratio is 21:1 — black on white.
4.5:1 for normal text and 3:1 for large text. UI components and meaningful graphics also need 3:1 against adjacent colours, under WCAG 2.1 criterion 1.4.11. This page checks all five verdicts at once.
7:1 for normal text and 4.5:1 for large text. Most organisations aim for AA — as Level Access puts it, AAA is not achievable or practical in all cases. AAA is the enhanced level, not the legal minimum most rules point to.
At least 18pt (about 24px) regular, or 14pt (about 18.66px) bold. A 20px medium-weight heading does not count, even though it feels big — it is still normal text and needs 4.5:1.
From the relative luminance of each colour: linearised RGB weighted 0.2126 for red + 0.7152 for green + 0.0722 for blue. The ratio is (lighter + 0.05) / (darker + 0.05). The scale runs from 1:1 (identical colours) to 21:1 (black on white).
AA is the minimum level — the one legislation and procurement rules point to. AAA is the enhanced level. AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 for normal text and 4.5:1 for large text.
A plain ratio check does not — it measures contrast, not colour perception. This page adds a colour-blindness simulation (protanopia, deuteranopia, tritanopia) next to the ratio, but the simulation is an approximation. Two colours that pass can still be indistinguishable to some readers, so never use colour alone to mean something.
Use brand colours for large text, which only needs 3:1, keep high-contrast pairs for body text, or darken or lighten a shade slightly without abandoning the scheme. The Fix it for me button below does the lightness walk for you and keeps your hue.
Yes. WCAG 2.1 criterion 1.4.11 requires interactive components — button boundaries, form borders, focus indicators — and meaningful graphics to be at least 3:1 against adjacent colours. The text on the button still needs 4.5:1, or 3:1 if it is large text.
Yes — logos and logotypes are exempt, as is purely decorative text, disabled controls, and incidental text inside an inactive component. But looks disabled is not the same as being disabled: if it is interactive, it must meet the threshold.
Low-contrast text is the single most common accessibility failure on the web. WebAIM Million 2024 found 83.6% of home pages had at least one contrast error (cited by tuwebaccesible.es). A separate source, wcagsafe.com, cites roughly 79-81% of home pages from the annual WebAIM Million analysis — the two sources report different years and rounds, so each figure belongs with its source.
Use a free pair-checker like this page for two colours, your browser DevTools colour picker for live elements on the page, or an automated scanner to crawl the whole site and flag every failure. For a whole palette at once, use the bulk testing panel below.
#767676 at 4.54:1 — the lightest pure grey that passes AA for normal text on white. One step lighter, #777777 at 4.47:1, fails. #999999 at 2.84:1 fails even the large-text bar. The grey cheat-sheet below lists the common greys with their exact ratios.
No. The ratio measures luminance difference only. Font size, weight, rendering, the background (photo or gradient), and the reader's vision all matter too. A very high ratio — pure black on pure white — can feel harsh, so many designers use a near-black instead while staying well above the threshold.
Yes, free — test unlimited foreground and background pairs with no signup, and everything runs in your browser. Nothing you type is sent anywhere. If a checker gates the fix behind signup, that is the free-trap pattern: the fix should be on the page, not behind a form.
What is the highest possible contrast ratio? 21:1 — black on white. Nothing scores higher, because the formula caps at the two extremes.
Do placeholders need to pass? If placeholder text conveys essential information, yes — darken it. #9CA3AF placeholders on white are 2.54:1 and fail; #6B7280 passes at 4.83:1 on white (but only 4.39:1 on gray-100, so check the real surface).
Is dark mode automatically accessible? No. Recalculate every pair for the dark theme — a grey that passes on white can fail on a dark background.
What about WCAG 3.0 and APCA? WCAG 3.0 will replace the ratio with APCA, which weighs text size and weight more accurately. WCAG 2.1 is still the standard you are audited against today.