Search tools

Color Palette Generator

Start from one colour, choose a harmony, and get matching colours plus a full shade scale ready for your CSS.

Color Palette Generator tool

Hues are rotated in OKLCH, so every colour keeps the same perceived lightness as the base.
Shade scale (50–950) for the base colour
Export

Processing runs in your browser.

A good palette is more than a few colours that look nice together. You need an accent for buttons, softer tints for backgrounds, dark shades for text, and they all need to feel related. Picking each one by hand takes ages and rarely comes out even. This generator starts from the colour you already have, usually your brand colour, and builds the rest with consistent maths.

Harmonies, briefly

  • Analogous: neighbours on the colour wheel, 30° either side. Smooth and natural.
  • Complementary: the opposite hue. Maximum contrast, perfect for a single standout accent.
  • Split complementary: the two hues beside the opposite. Lively but less harsh.
  • Triadic and tetradic: three or four evenly spaced hues for bold, colourful designs.
  • Monochromatic: one hue from dark to light. Elegant and easy to keep consistent.

The shade scale

Interfaces need many versions of each colour. Take a blue base of #2563eb. The scale gives you 50 for a subtle highlighted row, 100 for a badge background, 500 or 600 for buttons, and 900 for headings. Each step is set at a fixed OKLCH lightness, so “blue-200” and “orange-200” are equally light. Mixing colours across your palette then looks deliberate rather than random.

Export and use

The CSS variables export works in any project. The Tailwind export uses the v4 @theme syntax, so the colours become real utility classes. JSON suits design tokens and scripts, and SCSS suits older Sass codebases.

How to use the Color Palette Generator

  1. Enter your base colour, or click Random base.
  2. Choose a harmony, such as Analogous or Complementary.
  3. Click any swatch to copy its HEX value.
  4. Pick which colour to build the 50–950 shade scale from.
  5. Choose an export format (CSS variables, Tailwind v4, JSON or SCSS) and click Copy.

Features

  • Six harmonies: analogous, complementary, split complementary, triadic, tetradic and monochromatic.
  • Hue rotation in OKLCH, so every colour keeps the base colour’s perceived lightness.
  • Eleven-step 50–950 scale with chroma tapering near white and black, like hand-tuned palettes.
  • Readable label colour on every swatch, chosen by contrast.
  • Exports to CSS custom properties, a Tailwind v4 @theme block, SCSS variables or JSON.

Frequently asked questions

Which colour harmony should I choose?

Analogous is calm and safe for most interfaces. Complementary gives the strongest accent, good for calls to action. Triadic and tetradic suit playful brands, but usually work best with one dominant colour and the others used sparingly.

What is a 50–950 shade scale?

It is a set of eleven tints and shades of one colour, from almost white (50) to almost black (950), as used by Tailwind CSS. Use light steps for backgrounds, middle steps for buttons and dark steps for text.

Why do the colours look balanced instead of some glowing more than others?

The tool rotates hue in OKLCH, which keeps perceived lightness constant. In HSL, a yellow and a blue with the same lightness look very different in brightness; in OKLCH they match.

How do I use the Tailwind export?

Paste the @theme block into your main CSS file after @import "tailwindcss". Tailwind v4 then creates utilities such as bg-primary-500 and text-primary-900 from those variables.

Written by