Color Palette Generator
Generate 11-step Tailwind color shade scales (50 to 950) with WCAG contrast badges and color harmonies.
Runs in your browser. Nothing you add is uploaded.
What the Color Palette Generator does
Pick a base colour and this generator builds an 11-step shade scale named the way Tailwind names its colours (50 to 950), shows each shade's contrast ratio against white and black text, suggests complementary, analogous and triadic colours, and exports the scale as a tailwind.config.js block or as CSS custom properties. The scale is built in HSL: every step keeps your colour's hue and saturation and uses a fixed lightness, from 96% for 50 down to 6% for 950.
How to generate a colour scale
- Pick a base colour with the picker, type a hex code, choose a preset (Emerald, Indigo, Rose, Amber, Cyan, Violet), or press Random.
- Look along the 50–950 scale; each swatch shows its contrast against white and black and which text colour to use on it.
- Click any swatch to copy its hex code.
- Check the harmony row for accent colours: complementary (opposite hue), analogous (±30°) and triadic (±120°).
- Copy the tailwind.config.js snippet for Tailwind v3, or the CSS variables, which go inside @theme { } in Tailwind v4.
The Color Palette Generator runs entirely in your browser — nothing you enter is uploaded, stored, or logged.
When to use it
From a brand colour to a full UI scale
One brand hex is not enough for an interface: you need near-white tints for backgrounds, mid shades for borders and buttons, and dark shades for text. Generating eleven steps from one colour gives a family that belongs together, and the names slot straight into classes such as bg-brand-50 and text-brand-800.
Choosing accessible pairs
Each swatch shows its contrast against white and black. WCAG AA needs 4.5:1 for normal text and 3:1 for large text, so the ratios tell you at a glance which shades can carry white button text and which need dark text.
Finding accent colours
Complementary colours sit opposite each other on the colour wheel and contrast strongly; analogous ones sit beside each other and feel calm; triadic ones are spaced a third of the wheel apart. They are mathematical starting points, so adjust lightness and saturation by eye before using one.
Good to know
- Because every step uses a fixed lightness, your exact input colour may not appear in the scale. Shade 500 is your hue and saturation at 50% lightness; if your brand colour must appear exactly, use it alongside the scale.
- HSL lightness is not how bright a colour looks: a yellow and a blue at the same HSL lightness differ a lot in perceived brightness. Expect yellows to look washed out at the light end and blues to turn dark sooner; Tailwind's own palettes are hand-tuned for this.
- Contrast ratios use the WCAG 2 formula, which runs from 1:1 (no contrast) to 21:1 (black on white).
- The CSS variables are named --color-brand-50 to --color-brand-950, the naming Tailwind v4 uses for theme colours.
Frequently asked questions
What is the standard WCAG contrast ratio for text?
How do I add these shades to Tailwind CSS?
How are shades 50 through 950 calculated?
What does a 4.5:1 contrast ratio mean?
Page last updated . Found a wrong result or a mistake on this page? Let us know.
Related tools
Regex Builder
Build a regular expression from blocks, with live matches.
SQL Formatter
Put each SQL clause on its own line, or minify to one line.
JSON to YAML Converter
Convert JSON to YAML and back, with clear error locations.
Chmod Permissions Calculator
Work out chmod values from checkboxes, octal or ls -l strings.