ACCESSIBLE PALETTE GENERATOR
Turn one brand color into a full, WCAG-checked tint/shade scale with contrast ratios and AA/AAA badges built in.
In short
Pick a base or brand color and get a ten-step tint/shade palette with the WCAG contrast ratio and AA/AAA pass badge against black and white text for every swatch. Computed locally in your browser.
Ratios are WCAG 2.x contrast against pure black (#000) and pure white (#fff) text. AA needs 4.5:1 for normal text (3:1 for large text ≥ 24px or 19px bold); AAA needs 7:1 (4.5:1 for large text).
How to build an accessible color palette
- 1
Pick your base or brand color with the swatch, or type its hex code.
- 2
Review the generated palette — ten steps from near-white to near-black at that hue.
- 3
Check the contrast ratio and AA/AAA badge shown for each swatch against black and white text.
- 4
Click a swatch's hex code to copy it for use as a text or background color that passes your target level.
Questions
- How is this palette generated?
- Your base color is converted to HSL, and its hue and saturation are held constant while lightness is stepped from 95% down to 8% in ten stops — the same tint/shade approach used by most design-system color scales (e.g. Tailwind's 50-900 shades).
- What do the AA and AAA badges mean?
- They're WCAG 2.x contrast levels for text. AA requires at least 4.5:1 contrast for normal text (3:1 for large text, 24px+ or 19px+ bold). AAA is stricter: 7:1 for normal text, 4.5:1 for large text. A swatch's badge shows the best level it reaches against that background.
- Why do I get two ratios per swatch?
- One ratio is for using the swatch as a background with black text on top; the other is for white text on top. This tells you, at a glance, which text color to pair with each shade for a given accessibility level — light shades usually pass with black text, dark shades with white text.
- Can I use these colors as both background and text?
- Yes — the same ten swatches work as a full scale: pick a light one for backgrounds and a dark one (from the same hue) for text on top of it, and check that the pairing you choose also passes the contrast ratio you need.
- Is my color processed anywhere but my browser?
- No — the palette and every contrast ratio are computed locally with HSL and WCAG relative luminance math. Nothing is uploaded.
Related tools
- Color Blindness SimulatorPreview a color, palette, or image under protanopia, deuteranopia, tritanopia, and achromatopsia.
- Color Temperature ConverterConvert a color temperature in Kelvin to RGB/HEX, with common light-source presets.
- CMYK ConverterConvert a color between HEX, RGB, and CMYK, all fields updating together.
- Random Color GeneratorGenerate random colors with HEX, RGB, and HSL values, click to copy.
- Color Palette GeneratorPick a base color and a harmony, get five colors that work together.
- Color PickerPick a color and get it in hex, rgb, and hsl.
- Line Height CalculatorPreview CSS line-height on real paragraph text, pick a preset, and check it against WCAG 1.4.12.
- CSS Transform GeneratorBuild a translate/rotate/scale/skew transform with a live preview and generated CSS.
Updated