Color contrast checker

Check any foreground and background pair against WCAG AA, AAA and APCA. See real text at every size, fix failing pairs in one click, and preview the result under color blindness.

Live preview

12px

The quick brown fox

jumps over

14px

The quick brown fox

jumps over

16px

The quick brown fox

jumps over

18px

The quick brown fox

jumps over

24px

The quick brown fox

jumps over

32px

The quick brown fox

jumps over

Contrast ratio

17.06:1

  • AAPass

    Normal text · ≥ 4.5:1

  • AA LargePass

    Large text · ≥ 3:1

  • AAAPass

    Normal text · ≥ 7:1

  • AAA LargePass

    Large text · ≥ 4.5:1

APCALc -106.3

Any text, including thin weights. APCA is the perceptual contrast method proposed for WCAG 3.

Color-blindness simulation

How this pairing appears to viewers with the four common types of color vision deficiency.

  • Aa

    Original

  • Aa

    Protanopia

    no red cones

  • Aa

    Deuteranopia

    no green cones

  • Aa

    Tritanopia

    no blue cones

  • Aa

    Achromatopsia

    no color

Accessible color pairings

A quick reference of common pairings that pass WCAG AA for body text. Click any row to load it above.

PreviewPairingForegroundBackgroundRatioLevel
AaNear-black on white#1A1A2E#FFFFFF17.06:1AAA
AaWhite on near-black#FFFFFF#1A1A2E17.06:1AAA
AaNavy on white#0B3D91#FFFFFF10.04:1AAA
AaWhite on navy#FFFFFF#0B3D9110.04:1AAA
AaGreen on mint#14532D#F0FDF48.70:1AAA
AaMaroon on rose#7F1D1D#FEF2F29.16:1AAA
AaBlue on ice#1E3A8A#EFF6FF9.52:1AAA
AaWhite on slate#FFFFFF#11182717.74:1AAA
AaSlate on grey#111827#F3F4F616.12:1AAA
AaYellow on slate#FDE047#11182713.46:1AAA

Frequently asked questions

What contrast ratio do I need to pass WCAG?

For WCAG 2.1 AA, normal body text needs a contrast ratio of at least 4.5:1 and large text (24px, or 18.66px bold) needs at least 3:1. The stricter AAA level requires 7:1 for normal text and 4.5:1 for large text.

What is APCA and why is it shown here?

APCA (Accessible Perceptual Contrast Algorithm) is the contrast method proposed for WCAG 3. Unlike the WCAG 2.1 ratio, it accounts for how the human eye actually perceives light and dark text, so it reports contrast as an Lc value from roughly -108 to 106. It is shown alongside the WCAG ratio because it often gives a more realistic answer, especially for light text on dark backgrounds.

My colors fail. How do I fix them without redesigning?

When a pair fails AA, this tool suggests the nearest passing color by holding the hue and saturation and only adjusting lightness, in both directions — lighten or darken the text, or lighten or darken the background. Each suggestion is one click to apply, so you keep your color identity while reaching compliance.

Why simulate color blindness?

Roughly 1 in 12 men and 1 in 200 women have some color vision deficiency. A pairing that relies on a red/green difference can vanish for them even when its contrast ratio passes. The simulation shows your exact colors under protanopia, deuteranopia, tritanopia and achromatopsia so you can check the difference survives.

Browse colors by family

Every tool feeds the reference catalog. Pick a family to explore.