Home/Tools/Colors/Color Palette Generator
Colors · Generator

Color Palette Generator

Generate harmonious color palettes — shades, analogous, complementary, triadic, and more.

Base Color

Palette Type

Steps

9

Palette — Shades & Tints

Generated CSS
:root {
  --color-1: #e8e8fd;
  --color-2: #b4b5f8;
  --color-3: #8082f4;
  --color-4: #484bef;
  --color-5: #1418eb;
  --color-6: #1013b7;
  --color-7: #0b0d83;
  --color-8: #07084b;
  --color-9: #020217;
}
100%
Free, no
sign-up needed
0
Code written
by hand
85+
CSS tools
in one place
<1s
Copy-ready
CSS instantly
What is this

What is the Color Palette Generator?

Generate a full CSS colour palette - tints, shades, and complementary colours - from a single brand colour. Export as CSS custom properties.

Everything runs locally in your browser. Adjust the controls above, preview instantly, and copy clean, production-ready CSS — no account, no upload.

How to use

Using the Color Palette Generator

Everything lives in the panel at the top of this page. There is nothing to install — it all runs right here in your browser.

1

Enter your brand colour

Type or paste a HEX value. The generator creates a 9 or 11-step scale from lightest tint to darkest shade.

2

Adjust the scale algorithm

Choose between linear, HSL-based, or perceptual (oklch) scaling. Perceptual scaling produces consistent lightness steps across different hues.

3

Export as CSS custom properties

Click Export to copy the full :root block with numbered steps (50-900). Paste into your design token file.

The output

What the generated code looks like

Clean, production-ready CSS — no vendor bloat, no unnecessary declarations.

tokens.css
/* Generated from #6C2EF5 */
:root {
  --color-50:  #f3eeff;
  --color-100: #e2d2fe;
  --color-200: #c4a5fd;
  --color-300: #a678fb;
  --color-400: #894bf9;
  --color-500: #6C2EF5; /* base */
  --color-600: #5a26cc;
  --color-700: #471da3;
  --color-800: #35147a;
  --color-900: #220c52;
}

Paste this into your global CSS file. Reference shades with var(--color-500) throughout your components.

Pro tips

Pro tips for better results

Use the 500 step as your base colour

Naming the base colour 500 gives you room for 4 lighter tints (100-400) and 4 darker shades (600-900), matching Tailwind and Material conventions.

Check contrast on every step you use for text

Step 700 and above on white typically meets WCAG AA (4.5:1) for body text. Step 500 often fails for small text - check before using it for copy.

Generate a neutral palette alongside brand colours

Every design system needs a grey scale. Run this generator with a desaturated version of your brand hue (reduce saturation to 5-10%) to get warm or cool neutrals.

Keep your palette to 2-3 hues maximum

Primary, secondary, and a neutral. More than 3 hues creates visual noise. Generate accent colours as tints of your primary rather than introducing new hues.

FAQ

Frequently asked questions

A 9-step scale (100-900) covers most use cases. Tailwind uses 11 steps (50, 100-900, 950). More steps give finer control but increase token count. Start with 9 steps and add more only if you need them.
A tint mixes the base colour with white (lighter). A shade mixes with black (darker). A tone mixes with grey. This generator creates tints for steps 50-400 and shades for steps 600-900.
No. All palette generation runs in your browser. Nothing is sent to a server.

From the blog

Read more