Skip to content
toolstome

Colour palette generator

Build a colour palette from a single brand colour. Type a colour in any CSS format or pick one, and choose a harmony: complementary, analogous, triadic, split-complementary, tetradic or monochromatic. The generator works in OKLCH, a colour space designed so that equal steps look equally different, and keeps every colour inside the sRGB range without shifting its hue. It also builds an 11-step scale from 50 to 950, like the colour ramps in design systems and Tailwind CSS, and exports it as CSS custom properties or a Tailwind colour object.

Free · No sign-upProcessed in your browser

Harmony

Complementary

  • Base
    #2563eb
  • 2
    #906900

Shade scale (50–950)

  • 50
    #f3f7ff
  • 100
    #e1ecff
  • 200
    #c6daff
  • 300
    #9bbeff
  • 400
    #6e9fff
  • 500
    #3f7dff
  • 600
    #205ee5
  • 700
    #1047c0
  • 800
    #03319b
  • 900
    #001f72
  • 950
    #001048

Export

How to use the Color Palette Generator

  1. 1

    Enter your base colour

    Hex, rgb(), hsl(), oklch() or a colour name, or use the picker.

  2. 2

    Choose a harmony

    Each swatch shows its hex code and copies with one click.

  3. 3

    Use the scale

    The 50–950 scale gives light backgrounds to dark text shades in one hue.

  4. 4

    Export

    Copy the CSS variables, Tailwind colours or a plain list.

How the palette is built

Harmonies rotate the OKLCH hue: 180° for complementary, ±30° for analogous, 120° steps for triadic, 150° and 210° for split-complementary and 90° steps for tetradic. When a colour would fall outside sRGB, its chroma (colourfulness) is reduced at the same lightness and hue, as CSS Color 4 recommends, instead of clipping channels.

  • harmony hue = base hue + rotation
  • scale lightness from 97.5% (50) to 21% (950)

When to use it

  • Create a colour system for a brand or app.
  • Find accent colours that go with a logo colour.
  • Generate Tailwind or CSS variable colour scales.

Limits

  • Harmonies are a starting point; check contrast for text with the colour converter’s WCAG checker.
  • Colours are sRGB only.

Privacy

Palettes are generated in your browser. Nothing is sent anywhere.

Frequently asked questions

Why use OKLCH instead of HSL?

HSL lightness does not match how light colours look: yellow and blue at the same HSL lightness look very different. OKLCH is perceptually uniform, so palettes look more balanced.

What is a 50–950 scale?

A set of shades of one hue from very light (50) to very dark (950), used by design systems such as Tailwind CSS for backgrounds, borders and text.

Which harmony should I use?

Complementary gives strong contrast, analogous a calm look, triadic a lively balanced set, and monochromatic a single-hue palette.

Are the colours accessible?

Each swatch label uses black or white, whichever contrasts more. For body text, check contrast pairs against WCAG with the colour converter.

Can I use the output in Tailwind?

Yes. Paste the Tailwind object into the colors section of your theme.

People also use

Last updated November 22, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More