Contrast Checker

Check whether text and background colors meet WCAG AA and AAA, and get the closest color that passes.

Result

Large text at 24px looks like this

Body text at 16px is where contrast matters most. Long paragraphs in low contrast tire the eyes quickly, especially on phones outdoors.

Small print at 14px — captions, labels and footnotes.

3.82:1

Large text and UI only. Normal text needs 4.5:1.

  • Normal text AA Fail AAA Fail
  • Large text AA Pass AAA Fail
  • UI components AA Pass
Text color
Background color
Target level
Marked band: lightness that reaches 4.5:1

Closest passing colors

Fails 4.5:1

Only lightness changes, so hue and saturation stay the same.

  • Aa Adjust text color #6B7A99 → #606E8D · 4.52:1
  • Aa Adjust background #F4F1EA → #0F0D09 · 4.50:1

WCAG levels by use

UseAAAAA
Normal textBelow 24px, or below 18.66px boldFail 4.5:1Fail 7:1
Large text24px and up, or 18.66px bold and upPass 3:1Fail 4.5:1
UI componentsIcons, borders, focus rings, input outlinesPass 3:1—

How contrast ratio works

Contrast ratio compares the relative luminance of two colors on a scale from 1:1 (identical) to 21:1 (black on white). The Web Content Accessibility Guidelines (WCAG 2) use it to decide whether text is readable for people with low vision or color vision deficiencies, and on dim or glaring screens. Hue does not count — only how light or dark the two colors are.

WCAG AA and AAA thresholds

  • Normal text: at least 4.5:1 for AA and 7:1 for AAA.
  • Large text (24px and up, or 18.66px bold and up): 3:1 for AA and 4.5:1 for AAA.
  • UI components and graphics such as icons, input borders and focus rings: 3:1 (WCAG 1.4.11).

Ratios are rounded down to two decimals, so 4.499:1 shows as 4.49:1 and fails AA — the same way strict audit tools treat it.

Fixing a failing pair

When a pair fails, the checker searches for the nearest color that passes by changing only lightness in OKLCH, once for the text and once for the background. Hue and saturation stay the same, so the fix still looks like your brand. Share the exact pair with the link in the address bar. For full color schemes with text, background and accent roles already balanced for contrast, try the palette generator or browsecolor palettes.