Color Accessibility Checker

Check any two colours against WCAG AA and AAA. Live preview, plain-English verdicts, and suggested fixes when a pairing falls short.

By iwantfreecolortools.com Team

Foreground Colour
Background Colour
What are you checking?
4.54
Contrast Ratio
WCAG Level AA
Pass
WCAG Level AAA
Fail
Live Preview

The quick brown fox jumps over the lazy dog. This is normal body text at 16px.

Large heading text at 24px bold

Button or UI element
Who this tool is for:

Best for: Confirming body text clears the WCAG AA 4.5:1 ratio before launch, and checking whether large headings pass at 3:1 or reach AAA at 7:1

Limitations: Checks contrast ratios between two colours you supply and does not simulate colour blindness or scan a live page for every text and background pair

Best suited for: Web developers running an accessibility pass before a site goes to a client

What WCAG Asks For

What is WCAG?

WCAG is the W3C's Web Content Accessibility Guidelines. The current version, WCAG 2.2, became a W3C Recommendation on 12 December 2024. Three success criteria cover contrast, and they are the ones this tool checks:

1.4.3 Contrast (Minimum), Level AA. Text needs at least 4.5:1, or 3:1 if it is large, which W3C defines as "at least 18 point or 14 point bold."

1.4.6 Contrast (Enhanced), Level AAA. 7:1 for normal text and 4.5:1 for large text.

1.4.11 Non-text Contrast, Level AA. User interface components and meaningful graphics need 3:1 against adjacent colours. There is no AAA version, so in UI mode AAA is marked not applicable rather than failed.

W3C does not recommend requiring Level AAA as a general policy for whole sites, because some content cannot meet every AAA criterion.

Relative Luminance Decides Contrast, Not Lightness

The checker computes each colour's relative luminance as WCAG 2.2 defines it. Each channel is divided by 255 and linearised: at or below 0.04045 it is divided by 12.92, otherwise it becomes ((v + 0.055) / 1.055)2.4. Then L = 0.2126 R + 0.7152 G + 0.0722 B, and the ratio is (L1 + 0.05) / (L2 + 0.05), with L1 the lighter colour, so it runs from 1:1 to 21:1.

HSL lightness plays no part. All five colours below have HSL lightness 50%, yet their relative luminance runs from 0.9278 to 0.0722, which is why yellow on white scores 1.07:1 and blue on white 8.59:1.

Bar chart. Yellow, cyan, green, red and blue all have HSL lightness 50 percent, but their relative luminance runs from 0.9278 for yellow to 0.0722 for blue.
Computed with the site's own contrast code, not a test with people.
ColourHSL lightnessRelative luminanceOn whiteOn black
#FFFF0050%0.92781.07:119.56:1
#00FFFF50%0.78741.25:116.75:1
#00FF0050%0.71521.37:115.3:1
#FF000050%0.21264:15.25:1
#0000FF50%0.07228.59:12.44:1

The ratio is displayed to two decimals, but pass or fail uses the unrounded number. #0071F4 on white displays as 4.50 and fails AA for normal text, because its ratio is 4.4983:1. Computed with the site's code over every third 24-bit colour, 3,081 colours show 4.5 or more against white while falling below it (method).

Five Colour Combinations That Fail, and How to Fix Them

Every ratio below is computed with the same formula as the checker above.

Three are a light colour on white, fixed by darkening the text. The other two are white labels on a bright button, fixed by darkening the button.

Where This Tool Stops

It compares two flat colours. It cannot judge text on a photograph, gradient or video, where the background changes pixel by pixel, and it does not show how a pair looks with a colour vision deficiency; the colour blindness simulator does. WebAIM's guide to contrast and colour covers the thresholds in more depth.

Frequently Asked Questions

WCAG 2.2 Success Criterion 1.4.3 requires at least 4.5:1 for normal text at Level AA and 3:1 for large text, meaning at least 18 point or 14 point bold. Success Criterion 1.4.6 raises that to 7:1 and 4.5:1 at Level AAA. Buttons, form borders, focus indicators and meaningful icons fall under Success Criterion 1.4.11, which requires 3:1 at Level AA and has no AAA level.
The checker displays the ratio to two decimals but compares the unrounded value with the threshold. #0071F4 on white has a ratio of 4.4983:1, which displays as 4.50 and is below the 4.5:1 AA minimum for normal text, so it fails. Computed over every third 24-bit colour, 3,081 colours sit in that gap against white.
Very common. The WebAIM Million 2026 report found low contrast text on 83.9 percent of the top one million home pages, averaging 34 distinct instances per page, and it was the most commonly detected accessibility issue. 95.9 percent of those home pages had detected WCAG 2 failures of some kind, averaging 56.1 errors per page.
Sometimes. Large text needs 3:1 at Level AA instead of 4.5:1, so a pair between those two numbers passes once the type is 18 point, or 14 point bold. It will not rescue a ratio below 3:1, and body copy usually cannot be set that large, so changing the colour is the more reliable fix.
No. Contrast is one requirement among many. A page can pass every contrast check and still fail on missing alternative text, unlabelled form fields, keyboard traps or poor heading structure. Treat this tool as one check in a wider accessibility review.
Related Tools
Copied

Get fresh reads straight to your inbox

Get notified when we publish new articles. Unsubscribe anytime.