Color Contrast Checker

Check if a text colour and a background colour have enough contrast to meet WCAG 2.2 at levels AA and AAA.

Pick a colour or type a hex code, for example #333 or #333333.

Pick a colour or type a hex code, for example #fff or #ffffff.

Preview

Normal text, 16 px. The quick brown fox jumps over the lazy dog.

Large text, 24 px (18 pt).

Large bold text, 18.67 px (14 pt bold).

Contrast ratio

12.63:1

Rounded down to 2 decimals. Ratios are never rounded up, so 4.499:1 shows as 4.49:1 and fails 4.5:1.

  • AA, normal text (needs 4.5:1) Pass
  • AA, large text (needs 3:1) Pass
  • AAA, normal text (needs 7:1) Pass
  • AAA, large text (needs 4.5:1) Pass
  • AA, user interface parts and graphics (needs 3:1) Pass

Large text means at least 18 point (about 24 px), or 14 point bold (about 18.5 px). The user interface check (3:1) is for things like buttons, form borders, icons and chart lines against the colours next to them.

Source: formulas, thresholds and the large text size from W3C, WCAG 2.2 (contrast ratio, relative luminance, success criteria 1.4.3, 1.4.6 and 1.4.11), read 23 November 2026. No rounding, and the px sizes, from W3C, Understanding SC 1.4.3, read 23 November 2026.

WCAG 2.2 formula

The ratio uses the relative luminance and contrast ratio formulas published by the W3C.

Five checks at once

See pass or fail for AA and AAA, normal and large text, and for buttons, icons and other parts.

Private

The check runs in your browser. Nothing you enter is sent or saved.

How to use the Color Contrast Checker

  1. Pick the text colour or type its hex code, such as #333 or #333333.
  2. Pick the background colour or type its hex code. Use Swap to switch them.
  3. Read the contrast ratio and the pass or fail for each check, and see the sample text.

Questions and answers

Is it free?

Yes. The tool is free to use and needs no account or sign-up.

What contrast ratio do I need for WCAG AA?

WCAG 2.2 asks for at least 4.5:1 for normal text and 3:1 for large text at level AA. Level AAA asks for 7:1 and 4.5:1. Buttons, icons and other interface parts need 3:1.

What counts as large text?

WCAG 2.2 says large text is at least 18 point, or 14 point bold. On the web that is about 24 px, or about 18.5 px bold.

Why does 4.499:1 fail 4.5:1?

The W3C says contrast ratios should not be rounded up. This tool checks the exact ratio and shows it rounded down to 2 decimals.