Palette accessibility checker

To check whether a color palette is accessible, test every text and background pair against WCAG 2.2: a pair passes AA at 4.5:1 for normal text (3:1 for large text) and AAA at 7:1 (4.5:1 for large text). Paste up to six HEX colors below to see each pair's ratio and result.

Paste up to six hex colors and see which pairs pass WCAG AA and AAA text contrast, with a copyable result for each pair.

Check a whole palette at once. Enter the colors from your design system and the checker tests every pair locally in your browser. For one foreground and background pair with a live preview, open the WCAG color contrast checker. To build a palette from a single brand color first, use the accessible color palette generator. To start from real website colors, browse accessible website color palettes.

Your palette

4 of 6 colors

Add two to six hex colors. Every pair is tested in both directions, so each result applies to text in either color on the other.

Up to 6 colors keeps the pair list readable.

Pair results

  • #111827 / #ffffff17.74:1AA PassAAA Pass

    Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text uses lower thresholds.

  • #111827 / #2563eb3.43:1AA FailAAA Fail

    Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text uses lower thresholds.

  • #111827 / #f59e0b8.26:1AA PassAAA Pass

    Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text uses lower thresholds.

  • #ffffff / #2563eb5.17:1AA PassAAA Fail

    Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text uses lower thresholds.

  • #ffffff / #f59e0b2.15:1AA FailAAA Fail

    Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text uses lower thresholds.

  • #2563eb / #f59e0b2.41:1AA FailAAA Fail

    Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text uses lower thresholds.

How the pair results are calculated

The checker converts each hex color to relative luminance and compares every pair with the WCAG contrast formula. Ratios run from 1:1 for two identical colors up to 21:1 for black on white. A pair is labelled AA when it reaches 4.5:1 and AAA when it reaches 7:1 for normal text.

These results apply only to the pairs you tested. They do not certify whole-site accessibility: text over images, hover and focus states, keyboard use, alternative text and the other WCAG criteria still need separate checks.

WCAG text contrast thresholds

Text sizeAAAAA
Normal text4.5:17:1
Large text3:14.5:1

Palette accessibility checker — FAQ

What does this palette checker test?

It takes the hex colors you enter and calculates the WCAG contrast ratio for every pair. Each pair is labelled Pass or Fail for normal text at level AA (4.5:1) and level AAA (7:1), and you can copy the ratio and result.

How many colors can I check at once?

Up to six. Six colors produce fifteen pairs, which is enough to test a small palette without turning the results into an unreadable list. For a single foreground and background pair, use the full contrast checker.

Does a passing pair make my whole site accessible?

No. A result only covers the two colors in that pair. It does not certify whole-site accessibility. Text over images or gradients, hover, focus and disabled states, keyboard operation, alternative text and the other WCAG requirements still need their own checks.

What is the difference between AA and AAA contrast?

WCAG 2.2 level AA asks for at least 4.5:1 between normal text and its background. Level AAA raises that to 7:1. Large text has lower thresholds: 3:1 for AA and 4.5:1 for AAA.

More color tools

Image tools

CSS generators

Image & SVG tools

Typography & units

More free tools

All free tools