Grow a whole palette from one colour.

Start with a colour you already have, perhaps from a logo or a product photo, and the generator works out companion colours and a full run of lighter and darker shades. Click any swatch to copy its hex code.

When you're happy, copy the CSS variables or download them as palette.css for your website, theme or design file.

Runs in your browser. Nothing is uploaded.

Harmony

Shade scale

More design & colour tools · All 54 tools

How to use it

  1. Enter a hex code in Base colour, or use the colour picker beside it.
  2. Choose a Harmony: Complementary, Analogous, Triadic, Split complementary or Tetradic.
  3. Click any swatch in the Harmony or Shade scale rows to copy its hex code.
  4. Press Random colour if you want a fresh starting point to explore.
  5. Use Copy CSS or Download palette.css to take the variables with you.

Good to know

How harmonies are made

Each harmony turns the base colour round the colour wheel in HSL (hue, saturation, lightness). Saturation and lightness stay the same; only the hue moves:

HarmonyHue offsets from the base
Complementary0°, 180°
Analogous−30°, 0°, +30°
Triadic0°, 120°, 240°
Split complementary0°, 150°, 210°
Tetradic0°, 90°, 180°, 270°

Example: a teal at hue 180° has its complementary partner at 360°, which is the same as 0°: a red with the same saturation and lightness.

How the shade scale is made

The scale keeps the base hue and saturation and sets the lightness to fixed steps:

50: 95%    100: 90%   200: 80%   300: 70%   400: 60%
500: 50%   600: 40%   700: 30%   800: 20%   900: 12%

The exported file names them --brand-50 to --brand-900, followed by --harmony-1 onwards, inside a :root block. You can rename them after pasting.

Things to watch

  • HSL lightness is not the same as how bright a colour looks. A yellow and a blue at 50% lightness look very different, so two shades with the same number may not carry the same visual weight.
  • Your base colour only lands on a step if its lightness matches one. A brand colour at 38% lightness sits closest to 600.
  • Each swatch shows "Aa" in white or near-black, whichever contrasts more. That is a quick hint, not a full check: test real text pairs with the contrast checker.
  • Pale or greyish base colours give gentle harmonies, because turning the hue of a low-saturation colour changes little.

Questions.

Which harmony should I pick?

Analogous colours sit side by side on the wheel and feel calm together. Complementary gives the strongest contrast, which suits a single accent such as a button. Triadic and tetradic give more variety and work best when one colour leads and the others are used sparingly.

Why doesn't my exact base colour appear in the shade scale?

The scale uses fixed lightness steps, so your colour only appears there if its lightness happens to match one of them. The base colour is always the first swatch in the Harmony row.

Can I paste the CSS straight into my site?

Yes. The output is a standard :root block of CSS custom properties. Paste it into your stylesheet and use a colour with var(--brand-500), for example.

What does Random colour pick?

Any hue, with fairly strong saturation (55 to 90%) and middle lightness (45 to 60%), so the results are usable starting points rather than greys or near-whites.

Are these colours safe for text?

Not automatically. Colours can look good together and still make pairs that are hard to read. Check each text and background pair with the contrast checker before you use it.