Accessible Palette Generator: Shades with Guaranteed Text Contrast
Builds a shade ramp from a brand colour and shows which text colours and step pairs meet a contrast target.
Use the tool
Why this tool exists
Palettes made by eye often have text pairs that fail contrast.
This tool produces eleven steps from one brand colour, calculates the WCAG contrast of each with white and black, picks the best text colour, and lists which pairs inside the ramp reach 3, 4.5 or 7 to 1. It also suggests a darker brand variant for text on white if the brand colour is too light.
How to use it
- Enter your brand colour.
- Choose the contrast target.
- Read the table and the safe pairs.
- Copy the CSS variables.
Frequently asked questions
Which ratio should I pick?
4.5 for normal text at AA, 3 for large text and UI parts, 7 for AAA.
Is the formula the WCAG one?
Yes, the WCAG 2 relative luminance contrast ratio.
What about APCA?
Use the Contrast Checker for APCA values.
Is the colour sent anywhere?
No.