A11yDen

Contrast Suggester

Enter the pair that fails, pick the level you need, and get the nearest passing colours. The suggester changes lightness only — your hue stays yours — and every suggestion is re-checked after conversion to a real displayable colour. A suggestion is shown only if it truly passes.

Find a passing pair

Restricting the change can make some targets unreachable — the tool will tell you honestly if so.

Suggestions are computed on your device. Method: OKLCH lightness steps, hue and chroma preserved, gamut-mapped, then verified unrounded.

How it works

Your colours are converted to OKLCH, a perceptual colour space. The suggester scans lightness in small steps — darker and lighter, for each colour you allow it to change — mapping each candidate back into the sRGB gamut by reducing chroma (never by shifting hue). Every candidate is converted to a real 8-bit colour and re-checked with the same contrast engine as the checker. The passing option with the smallest perceptual change (ΔE OK) is listed first.

What this tool cannot do

It cannot keep a brand colour exact and make it pass at the same time — if the exact colour fails, something has to move. It also cannot judge whether the suggested pairing still looks right in your design; that part stays human.

Questions

Why did it say no passing colour exists?

Some combinations cannot reach the target from the side you allowed. A mid-grey background, for example, cannot reach AAA 7:1 by changing the text alone — neither black nor white gets there. Loosen the restriction, or lower the target, and options will appear.

Will the suggestion match my brand colour exactly?

No — it is the nearest colour that passes, which is a different colour by definition. The change amount (ΔE OK) is shown so you can judge how far it moved.

Related tools

All tools

All ten tools are listed on the homepage.