Skip to content
hexcolorcodepicker.com

WCAG Contrast Checker

Check any text and background pair

Contrast ratio

21.00:1

AA normal text

Pass

AAA normal text

Pass

AA large text

Pass

AAA large text

Pass

Normal text — 16px

The quick brown fox jumps over the lazy dog. This is body copy at normal size.

Large text — 24px bold

The quick brown fox jumps over the lazy dog.

Large text means 18pt (24px) or larger, or 14pt (about 18.66px) bold or larger, per WCAG.

Check the contrast ratio of any text and background color pair. See AA and AAA verdicts for normal and large text, with a live preview in both text sizes.

What is a contrast ratio?

A contrast ratio measures how easy text is to read, from 1.00:1 (invisible) to 21.00:1 (black on white). The ratio comes from the relative luminance of the two colors: the lighter color divided by the darker one, with a small fixed offset in the formula. A higher number always means easier reading, and the number is the same whichever color is the text.

The scale is not linear in how it looks: the jump from 1.00:1 to 3.00:1 is the difference between unreadable and barely readable, while the jump from 7.00:1 to 21.00:1 is the difference between good and excellent. That is why the WCAG limits sit where they do.

Ratio scale — where your pair lands

1.00:13.00:14.50:17.00:121.00:1

Your pair: 21.00:1 — AA normal Pass, AAA normal Pass, AA large Pass, AAA large Pass

The AA and AAA limits

Normal text needs 4.50:1 for AA and 7.00:1 for AAA, while large text needs 3.00:1 for AA and 4.50:1 for AAA. Large text gets lower limits because big, bold letters are easier to read at the same contrast. AA is the level most websites must meet; AAA is the stricter level for the highest accessibility standard.

Check the verdicts against the thresholds, not against how the preview looks to you. A pair can look fine on a bright screen and still fail, and a pair can look dull and still pass. The numbers decide, because they measure luminance rather than taste.

Four verdicts for your pair — live from the tool above

AA normal

Pass

AAA normal

Pass

AA large

Pass

AAA large

Pass

Green means Pass, red means Fail — the words carry the verdict, never color alone.

White on red: a pair that splits the verdicts

White text on a red background scores 4.00:1 — it fails AA for normal text but passes AA for large text. The ratio is below the 4.50:1 normal-text limit by 0.50, so body copy in white on red fails AA. It is above the 3.00:1 large-text limit, so a large heading in the same pair passes AA.

This is the most common surprise in contrast checking: a pair that looks bold and readable still fails for body text. The fix is to darken the red or use the pair only for large headings, never for paragraphs or buttons with small labels.

White on red — the same sentence at both sizes

Body copy in white on red — Fail AA (4.00:1)

A large heading — Pass AA (4.00:1)

Ratio 4.00:1: AA normal Fail, AAA normal Fail, AA large Pass, AAA large Fail.

White on yellow and black on yellow

White on yellow scores 1.07:1 and fails every test, while black on yellow scores 19.56:1 and passes AAA. White and yellow are both very light, so there is almost no luminance difference between them — 1.07:1 is nearly invisible text. Black and yellow are near opposites in lightness, so 19.56:1 is close to the 21.00:1 maximum.

Yellow is the classic warning color precisely because black on yellow is so readable. If your design uses a yellow background, use black or very dark text on it, never white. The same rule applies to any pale background: the text must be dark.

The yellow test — two panels, two very different results

White text on yellow

Fail — all four verdicts (1.07:1)

Black text on yellow

Pass AAA — all four verdicts (19.56:1)

White on yellow 1.07:1 fails every test; black on yellow 19.56:1 passes AAA.

A real blue that passes AA

White text on #3b5bdb scores 5.67:1, which passes AA for normal text. The ratio clears the 4.50:1 limit by 1.17, so body copy in white on this blue passes AA, though it stays below the 7.00:1 AAA limit for normal text. For AAA normal text you would need a darker blue or a higher ratio still.

This pair is a useful working example because #3b5bdb is a real blue used in design systems, not a test extreme. It shows that a mid blue can carry white body text — the color does not have to be navy for white text to pass AA.

White text on #3b5bdb at both sizes

Body copy in white on #3b5bdb — Pass AA (5.67:1)

A large heading — Pass AA (5.67:1)

Ratio 5.67:1: AA normal Pass, AAA normal Fail, AA large Pass, AAA large Pass — the AAA normal-text Fail keeps the claim honest.

How to fix a failing pair

Darken the darker color or lighten the lighter color until the ratio crosses the limit you need. Moving one color by a small step often gains the 0.50 or 1.00 needed to pass: a slightly darker background or slightly darker text is usually enough, and the design barely changes. Do not change the hue — lightness is what moves the ratio.

Test the exact pair you will ship, at the exact size you will ship it. A heading that passes at large size can fail when the same colors are reused for a small button label, so check every size the pair appears in, not just the one you tested first.

Fix-it steps — white text on red, darkened step by step

BackgroundRatioAA normalAA large
#FF00004.00:1FailPass
#D000005.70:1PassPass
#B000007.38:1PassPass
#9000009.61:1PassPass
#70000012.43:1PassPass

Each darker step climbs the ratio — watch AA normal flip from Fail to Pass as the red darkens.

All color tools

21 tools, one topic — see About Hex Color Code Picker for who built this site.

Frequently asked questions

You need 4.50:1 for WCAG AA and 7.00:1 for WCAG AAA. Normal text means body copy and small labels. Enter any foreground and background color in the tool and it shows all four verdicts, so you can see at once whether your pair passes AA, AAA, or neither.