Accessible Palette Fixer: Nudge Colors to Meet WCAG Contrast
Takes a list of colours and a background and moves the lightness of each colour, in OKLCH, until it reaches the contrast ratio you choose.
Use the tool
Why this tool exists
Brand colours often fail text contrast. This tool finds the smallest lightness change, darker or lighter, that reaches the target, keeping hue and as much chroma as sRGB allows. It shows each original and corrected colour with its ratio.
Contrast is the WCAG 2 ratio. A colour on a mid-tone background may not be fixable, and the tool says so. Always check the result by eye and in context.
How to use it
- Enter your palette, one colour per line, with optional names.
- Set the background colour and the target ratio.
- Run the tool.
- Copy the corrected colours.
Frequently asked questions
Which target should I use?
4.5 for normal text at WCAG AA, 3 for large text and UI parts, 7 for AAA.
Why did the colour become less vivid?
Dark or light versions of a hue fit less chroma in sRGB.
Does it handle APCA?
No. Use the Contrast Checker for APCA values.
Can it fix a pair of text and background both?
It adjusts only the palette colours against the one background.