Accessible color adjuster

Pick the color you want to use and the background it sits on, choose the contrast level you need, and get a version of your color adjusted to reach it, staying as close as possible to the original.

  • Free
  • No sign-up
  • Runs in your browser
accessible-palette-generator

Fill in the values above to see the result.

100% private — the calculation is done in your browser and nothing is sent to any server.

How it works

Choose your color and its background

The color you want to use, and where it will sit.

Pick a contrast target

3:1 for UI and large text, 4.5:1 for normal text, or 7:1 for stricter AAA.

Get the adjusted color

Same hue, darkened or lightened just enough.

Keep the color, fix the contrast

A brand color often looks great as a logo but fails as body text: a pastel pink or a light gold can be beautiful on a white background and still be nearly unreadable at normal text size. Rather than picking a completely different color by trial and error, this tool nudges your color's lightness up or down, just enough to pass the contrast ratio you need, while keeping its hue as close to the original as possible.

The three targets

  • 3:1 is the WCAG AA minimum for large text (24px and up, or 18.66px bold) and for the visible parts of UI components such as input borders and icons.
  • 4.5:1 is the AA minimum for normal body text, the level most accessibility audits check first.
  • 7:1 is the AAA level, a stricter bar recommended for content aimed at low-vision readers or where legibility matters most.

How the adjustment works

The tool keeps your color's hue and saturation and searches for the lightness value that reaches the target contrast against your chosen background, moving toward black if the background is light and toward white if the background is dark. If your color already passes, nothing changes. The result is a real color you can use directly, not just a pass or fail message.

What to do with the result

Use the adjusted color for text or an icon on that background, and keep the original for places that do not need to pass contrast, such as a large decorative shape or a logo. If the adjusted color has drifted further than you like, try a lower contrast target if your use case allows it, for example large text at 3:1 instead of 4.5:1, or start from a color with more contrast headroom.

Limits

This adjusts lightness only; it does not change hue or saturation, so an extremely light or saturated starting color may need a large shift to pass. To measure the contrast of two colors you already have, use the contrast checker. Everything is calculated in your browser.

Frequently asked questions

How do I make a color pass WCAG contrast?
Enter your color and its background, choose the target ratio, and the tool gives you an adjusted version of your color that meets it.
Does it change the hue of my color?
No. It only makes the color darker or lighter, keeping the same hue and saturation as closely as possible.
What contrast ratio do I need for normal text?
4.5:1 for WCAG AA, the most commonly required level. Large text and UI components need only 3:1.
What if my color already passes?
The tool tells you it already meets the target and returns it unchanged.
What is the difference between AA and AAA?
AAA is a stricter level, 7:1 for normal text instead of 4.5:1, recommended when legibility is especially important.
Is my color sent anywhere?
No. Everything is calculated in your browser.