Colour Palette Generator
Generate colour harmonies and a 50–950 shade scale from one colour, then export them as CSS variables, Tailwind, Sass or JSON.
Runs in your browser. Nothing is uploaded.
Harmony click a colour to copy it
Shades from 50 to 950
How to use the Colour Palette Generator
- Enter a base colour in any format, or use the colour picker or Random base.
- Choose a harmony, such as complementary, analogous or triadic, to get matching accent colours.
- See the shade scale from 50 (lightest) to 950 (darkest), built from your colour.
- Click any swatch to copy its HEX code.
- Pick a format, CSS variables, Tailwind CSS v4, Sass or JSON, give the palette a name, and copy or download the code.
A full palette from one colour
Most projects start with one brand colour, then need many more: lighter tints for backgrounds, darker shades for text and hover states, and accent colours that sit well beside it. Picking them by eye takes time and often gives uneven steps, where one shade jumps in brightness and the next barely changes. This generator builds a balanced set from a single colour in a moment.
Harmonies
Choose how accent colours relate to your base:
- Complementary: the opposite hue, for strong contrast such as call-to-action buttons.
- Analogous: neighbouring hues, for calm, related colours.
- Triadic and tetradic: three or four evenly spaced hues, for lively, varied palettes.
- Split complementary: softer than complementary, with two hues either side of the opposite.
- Monochromatic: one hue at different lightness levels.
Hues are rotated in OKLCH, so accent colours keep the same perceived lightness as the base instead of some looking much brighter than others.
A shade scale like a design system
The tool also builds an 11-step scale, 50, 100, 200 up to 950, in the style many design systems and CSS frameworks use. Light steps work for backgrounds and borders, middle steps for buttons and links, and dark steps for text. Every swatch shows its step number and HEX code in readable text.
Ready for your code
Export the palette as CSS custom properties, as a Tailwind CSS v4 @theme block, as Sass
variables or as JSON design tokens. Name the palette, for example brand or ocean, and the
variables follow that name, such as --brand-500.
Check that text colours meet accessibility guidelines on your chosen backgrounds with the Colour Contrast Checker, and convert any single colour with the Colour Picker & Converter. Everything runs locally in your browser.
Frequently asked questions
How are the shades made?
The scale keeps your colour’s hue and moves through 11 lightness steps in OKLCH, a colour space that matches how people see brightness. Colourfulness is reduced toward the very light and very dark ends, where screens can’t show strong colour. The result is an even ramp like those in popular design systems.
Is the base colour exactly one of the shades?
Not always. The steps have fixed lightness levels so every palette is consistent. Your exact base colour appears as the first harmony swatch, and you can add it to the code by hand if you need it as a token.
What do the harmonies mean?
They pick hues at set angles on the colour wheel: complementary uses the opposite hue, analogous its neighbours, triadic three evenly spaced hues, split complementary the two hues beside the opposite, and tetradic four. Monochromatic keeps one hue and varies lightness.
Which Tailwind version is the export for?
Tailwind CSS v4, which defines colours as CSS variables inside @theme. For v3, use the JSON export and paste the inner object into theme.extend.colors.
Is anything uploaded?
No. The palette is calculated in your browser.
Tutorials
How to build a brand colour scale for your website
Turn one brand colour into an 11-step shade scale and accent colours, export them as CSS variables or Tailwind tokens, and assign each step a job.