Color Palette Generator

Start with one colour, such as your brand or logo colour, and get matching colours from the colour wheel, lighter tints and darker shades, and a full 11-step scale from 50 to 950 like Tailwind's built-in colours. Click any swatch to copy it, then export the whole palette as CSS variables, Tailwind v4 @theme, a Tailwind v3 config or JSON.

Harmony

Scale (50 to 950)

Steps are spaced evenly by perceived lightness (OKLCH), like Tailwind's own colours. Your colour sits at the step closest to its lightness.

Tints (mixed with white)

Shades (mixed with black)

Click any swatch to copy its HEX code.

Export
:root {
  --brand-50: #F0F5FF;
  --brand-100: #DFEAFF;
  --brand-200: #C6DAFF;
  --brand-300: #9FC0FF;
  --brand-400: #6F9FFF;
  --brand-500: #4883FF;
  --brand-600: #2563EB;
  --brand-700: #1B4FC3;
  --brand-800: #0B3BA4;
  --brand-900: #032C8C;
  --brand-950: #00185F;
  --brand-accent-1: #007AA7;
  --brand-accent-2: #2563EB;
  --brand-accent-3: #7A49DF;
}

Palette generation runs in your browser. What you type never leaves this device.

Features

  • Seven harmonies: complementary, analogous, triadic, split complementary, tetradic, square and monochrome

  • An 11-step 50 to 950 scale with your exact colour kept in it

  • Tints (towards white) and shades (towards black)

  • Harmonies are calculated in OKLCH, so the colours look equally bright

  • Export as CSS variables, Tailwind v4, Tailwind v3 config, JSON or a plain HEX list

  • Name the scale (brand, primary, accent) and the export uses that name

  • Random button for ideas. Runs in your browser, free

When a palette generator helps

Building a website theme

Turn one brand colour into the 50 to 950 scale your buttons, backgrounds, borders and hover states need, ready to paste into Tailwind or CSS.

Choosing colours for a brand

See which colours sit well with your main colour before you print visiting cards, a shop board or packaging.

Charts and presentations

Get a set of distinct colours that look balanced together for slides, reports and dashboards.

How the palette is built

Harmonies in plain words

  • Complementary: the colour opposite yours on the wheel. Strong contrast, good for a call-to-action colour.
  • Analogous: neighbours on the wheel. Calm and natural.
  • Triadic: three colours evenly spaced. Lively but balanced.
  • Split complementary: your colour plus the two neighbours of its opposite. Contrast with less clash.
  • Tetradic and square: four colours. Rich; let one lead and use the rest as accents.
  • Monochrome: lighter and darker versions of the same hue.

The 50 to 950 scale

Each step has a fixed perceived lightness, the same idea Tailwind uses: 50 is almost white, 500 is the middle, 950 is almost black. Your colour replaces the step nearest to its lightness, so it appears in the export exactly as you entered it. Colours are slightly less saturated at the very light and very dark ends, which keeps 50 and 950 from looking neon or muddy.

Using the export

  • Tailwind v4: paste the @theme block into your main CSS file. Classes such as bg-brand-500 and text-brand-700 then work.
  • Tailwind v3: paste the object under theme.extend.colors in tailwind.config.js.
  • Plain CSS: paste the :root block and use var(--brand-500).

Check before you ship

Color Palette Generator - FAQ