Design tools

Color Palette Generator

Color Palette Generator

Colour harmonies, tints and shades and a 50–950 scale, exported as CSS, Tailwind, JSON or PNG.

About this tool

About Color Palette Generator

Start from one brand colour and get a complete, usable palette. Pick a harmony (complementary, analogous, triadic, split complementary, tetradic, square or monochrome) to find colours that work alongside it on the colour wheel. Below that, a 50–950 scale gives you eleven steps from near-white to near-black in the style of Tailwind CSS. It is built in the OKLCH colour space, so the steps look evenly spaced to the eye and keep their hue instead of drifting grey or purple, and your exact colour is placed on the step it fits best. Plain tints and shades are there too for quick lighter and darker variants. Click any swatch to make it the new base and keep exploring. When you're happy, export the palette as CSS custom properties, a Tailwind v4 @theme block, a Tailwind v3 config, SCSS variables, JSON, or a PNG of labelled swatches for a style guide. Nothing leaves your browser. Or start from 25 brand palette templates by industry, each with named primary, secondary, accent, surface and ink roles. Optional AI assist can pick the base colour and harmony from a brand or mood description, using your own AI key.

Built and maintained by Abhi JainUpdated

How to Generate a Colour Palette

  1. 1

    Choose a base colour

    Enter your brand colour in Base colour, or press Random base.

  2. 2

    Pick a harmony

    Choose a Harmony such as Complementary or Triadic and click any swatch to explore from it.

  3. 3

    Name the palette

    Set the Palette name used for variables, for example brand gives --brand-500.

  4. 4

    Export

    Choose CSS, Tailwind v4, Tailwind v3, SCSS or JSON and copy or download it, or download the PNG swatches.

Color Palette Generator: questions and answers

What are complementary colours?

Complementary colours sit opposite each other on the colour wheel, 180° apart, such as blue and orange. They give the strongest contrast, so use one as the main colour and the other sparingly for accents.

How is the 50–950 scale calculated?

Each step has a target lightness in OKLCH (from about 97% at 50 to 26% at 950), with chroma that peaks in the middle and tapers at the ends, keeping your hue. Your own colour sits on the step whose lightness is closest, or on the step you choose, and the other steps are stretched so the ramp stays smooth.

How do I use the palette in Tailwind CSS?

For Tailwind v4, paste the @theme block into your main CSS file and use classes like bg-brand-500. For Tailwind v3, merge the colors object into theme.extend in tailwind.config.js.

Are the generated colours accessible?

A palette doesn't guarantee accessibility by itself. Check text and background pairs in the Color Contrast Checker; as a rule of thumb, text from 700 and up passes on 50 to 100 backgrounds.

Can AI help me choose a colour palette?

Yes, optionally. Click AI and describe the brand or mood; you get a base colour, a harmony, named swatches and usage notes, and applying it rebuilds the scale. It runs on your own AI key, and only your description and current settings are sent, directly from your browser to your provider. Always check text pairs for contrast.

Are there ready-made brand palettes?

Yes. Pick one of 25 palette templates grouped by industry and mood. Each sets the base colour and harmony and adds five named roles (primary, secondary, accent, surface and ink) to every export; the ink colour always passes WCAG AA on the surface colour.