ToolGuest
US · UK · DE · AU Check an accessible palette
WCAG AA & AAA · Contrast panel open

Accessible Color PaletteWCAG AA & AAA Contrast, Checked

A palette is only finished when the text on it can be read. Generate a high contrast scheme, then check every text-on-background pair against WCAG AA and AAA — 4.5:1 and 7:1 for normal text, 3:1 and 4.5:1 for large text — with the exact ratio shown.

  • Under 50 ms
  • 100% client-side
  • HEX, RGB & HSL
  • Unlimited palettes

Live palette preview

Everything runs in this tab. No palette is uploaded, saved or limited.

Space to shuffle · 1–5 to lock

Need artwork for the palette? Resize an image, convert HEIC to JPG or check an aspect ratio — all local.

Base colour Generated in <1 ms · 0 uploads
Space Shuffle 1–5 Lock a swatch Ctrl+Z Undo Click any code to copy it
5 swatches · HEX, RGB and HSL

WCAG contrast checker

Test any text colour against any background. The ratio is calculated from relative luminance, exactly as WCAG defines it.

Large heading preview
Small body text preview at 14px — check this one first.
21.00:1
AA 4.5:1 AA large 3:1 AAA 7:1 AAA large 4.5:1

CSS custom properties

Five named variables, ready for a :root block. Copy the set and the palette moves into your stylesheet.


      

ToolGuest Accessible Color Palette generator builds a five-swatch palette and tests any text-on-background pair against WCAG 2.1 thresholds. It reports the exact contrast ratio with pass or fail badges for AA 4.5:1, AA large 3:1, AAA 7:1 and AAA large 4.5:1, exports CSS variables and runs entirely in the browser.

Accessibility first

A high contrast color palette you can prove, not just claim

Contrast is measured, not felt. The WCAG ratio compares the relative luminance of two colours, with 1:1 meaning identical and 21:1 meaning black on white. A palette that looks crisp on a calibrated monitor can still sit at 3.2:1, which fails AA for body text and excludes a meaningful share of visitors.

This page opens with the contrast panel already filled from the generated palette, so the first thing you see is the number that decides whether the scheme ships. Everything else works the same as the other palette tools in the cluster: five swatches, five harmony rules, copyable codes and a CSS export.

WCAG 2.1 contrast thresholds by text size and level
Text typeWCAG AAWCAG AAATypical use
Normal text (below 18pt, or below 14pt bold)4.5:17:1Body copy, labels, table cells, navigation links.
Large text (18pt+, or 14pt+ bold)3:14.5:1Headings, hero copy, large button labels.
UI component & graphical object3:13:1Input borders, icons that carry meaning, focus rings.
Decorative elementNo requirementNo requirementBackground shapes and dividers that convey nothing on their own.
Testing

How to check a wcag color palette generator result

Test the pairs the interface actually uses, not every combination. Body text on the surface, text on the accent, accent against the surface and the focus ring against both — four checks cover almost every real failure. A wcag color palette generator that reports one ratio for the whole palette is answering a question nobody asked.

When a pair fails, change lightness before hue. A 10% lightness shift moves the ratio far more than a 30-degree hue rotation, and it keeps the palette's colour relationships intact. If the design cannot move, the fallback is to change the text weight or size, because 18pt text only needs 3:1.

WCAG 2.2 keeps the same contrast thresholds as 2.1, so a palette that passes here is not invalidated by the newer success criteria. Focus appearance and target size are the additions, and neither changes the ratio maths.

Beyond contrast

Colour is one input to an accessible interface

Contrast is necessary and not sufficient. WCAG also asks that colour is never the only way information is conveyed, so an error state needs an icon or a message alongside the red. A high contrast palette with a red-only error indicator is still a failure for a colour-blind user.

The practical pattern is a palette with enough luminance range to build hierarchy without hue, plus one accent that is always paired with text or an icon. That is why the darkest swatch is best reserved for text and the lightest for surfaces: the interface remains readable even when the hues are indistinguishable.

For the wider scheme, the UI colour palette generator covers surface, border, text and accent roles, and the main palette generator covers the full set of harmony rules.

FAQ

Accessible palette questions

What contrast ratio makes a color palette accessible?

WCAG 2.1 AA asks for 4.5:1 between text and its background for normal text, and 3:1 for large text of 18pt or 14pt bold. AAA raises those to 7:1 and 4.5:1. Interface components such as input borders and focus rings need 3:1 against their surroundings.

How is the contrast ratio calculated?

Each colour is converted to relative luminance using the WCAG formula on linearised sRGB channels, then the ratio is the lighter luminance plus 0.05 divided by the darker luminance plus 0.05. Black on white is 21:1 and identical colours are 1:1.

Does a high contrast palette have to be black and white?

No. Any hue can reach 7:1 as long as the luminance gap is wide enough, so a deep navy on a warm off-white can pass AAA while looking more considered than pure black on white. The ratio depends on brightness, not on saturation.

Why does my palette pass on desktop but fail in an audit?

Audits test the rendered pair, including opacity, overlays and image backgrounds. A colour that passes at full opacity fails at 70%, and text over a photo has no fixed background colour. Check the composited result, not just the token values.

Is WCAG AAA required by law?

AA is the level referenced by most accessibility regulations, including the European Accessibility Act and the ADA settlements in the United States. AAA is a stricter target that suits long-form reading and public-sector services, but it is rarely mandatory for an entire product.