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.
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 size | AA | AAA |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text | 3:1 | 4.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
- Color contrast checker (WCAG)Test text and background colors against AA and AAA.
- WCAG color palette fixerAdjust text or background colors until they pass AA or AAA at your text size.
- Accessible color palette generatorTurn one brand HEX into background, surface, text, primary and accent roles with WCAG AA pair results.
- Accessible color workflowOne hub for checking a pair or a palette, fixing failures, generating a palette and exporting CSS.
- Color blindness simulatorPreview colors, palettes and images as people with color vision deficiency see them.
- HEX to RGB converterConvert HEX, RGB and HSL colors, alpha included.
- HEX to RGBA converterAdd opacity to any hex color and copy rgba() or 8-digit hex.
- HEX to OKLCH converterConvert HEX, RGB or HSL to OKLCH and pick colours with L, C and H sliders.
- Hex opacity chartAlpha hex codes for every opacity from 0 to 100%.
- RGB to HEX converterTurn rgb() and rgba() values into HEX codes.
- RGBA to HEX converterTurn rgba() into an 8-digit HEX, or the solid HEX it shows on white or black.
- HEX to HSL converterConvert any HEX color to HSL or HSLA and copy CSS-ready hsl() values.
- RGB to HSL converterTurn rgb() and rgba() values into HSL or HSLA with a live preview.
- HSL to HEX converterTurn hsl() and hsla() values into HEX codes, alpha kept as 8-digit HEX.
- HSL to RGB converterTurn hsl() and hsla() values into rgb() and rgba() with a live preview.
- HEX to HSV converterRead any HEX color as hue, saturation and value (HSB) for Figma or Photoshop.
- HSV to HEX converterTurn HSV/HSB values into HEX and rgb() with a live preview.
- RGB to HSV converterConvert rgb() colours to hue, saturation and value (HSB).
- HEX to CMYK converterTurn a HEX code into CMYK print percentages with a live swatch.
- CMYK to HEX converterTurn print CMYK values into HEX and rgb() codes for the web.
- Color pickerDrag to pick any colour and copy its HEX, RGB, HSL, OKLCH or CMYK code.
- Color name finderFind the closest CSS colour name for any HEX, RGB or HSL code.
- RGB to CMYK converterTurn rgb() values into CMYK print percentages with a live swatch.
- CMYK to RGB converterTurn print CMYK values into rgb() and HEX codes for screens.
- OKLCH to HEX converterTurn oklch() and Tailwind v4 colours into HEX and rgb(), with a gamut check.
- Color code converters (HEX, RGB, HSL, CMYK, OKLCH)Every color converter in one place: HEX, RGB, RGBA, HSL, CMYK and OKLCH, with alpha kept and CSS-ready output.
- Color shades generatorGet 10% tints, shades and tones of any color and copy them as CSS.
- Color wheel & complementary color generatorFind complementary, analogous, triadic and tetradic colors for any HEX.
- Tailwind color palette generatorTurn one HEX into a 50–950 shade scale for Tailwind v3 or v4.
CSS generators
- CSS box-shadow generator
- CSS text-shadow generator
- CSS border radius generator
- CSS triangle generator
- CSS glassmorphism generator
- CSS neumorphism generator
- SVG wave divider generator
- CSS cubic-bezier easing generator
- CSS animation keyframes generator
- CSS loader generator
- CSS scrollbar generator
- CSS media query generator
- CSS button generator
- CSS toggle switch generator
- CSS grid generator
- CSS flexbox generator
- CSS filter generator
- CSS clip-path generator
- CSS gradient generator
- CSS background pattern generator
- CSS text gradient generator
- CSS generators (grid, flexbox, shadow, gradient, animation)