Docelora
ToolsAboutContact
Design tools

Colour Palette Generator

Build a palette from a single brand colour: a full 50–950 shade scale for UI design, or classic colour-wheel harmonies – each exported as ready-to-use CSS custom properties.

Quick answer: enter a base colour, choose shades or a harmony, name the palette and copy the CSS variables. Each swatch shows whether it meets AA contrast on white or black.

Colour Palette Generator

Shades 50–950 · harmonies · CSS variables

Runs on your device: everything you type or open is processed in this browser tab. Nothing is uploaded to Docelora or anyone else.

Palette types

TypeWhat it does
ShadesLight-to-dark scale of the same hue, like Tailwind’s 50–950
ComplementaryOpposite hue (180°) for strong accents
AnalogousNeighbouring hues (±30°) for harmony
TriadicThree evenly spaced hues
Split-complementaryBase plus the two hues beside its complement
TetradicFour hues at 90° intervals
1. Pick a base colourYour brand colour.
2. Choose the typeShades for UI, harmonies for accents.
3. Copy the CSSPaste into :root.

Related tools

Frequently asked questions

How are shades created?

The hue is kept and lightness is stepped from 96% (50) to 12% (950).

Which shade should I use for text?

Usually 700–900 on white; check with the contrast checker.

What does “AA on white” mean?

The colour has at least 4.5:1 contrast with white.

Can I use these with Tailwind?

Yes – copy the hex values into your tailwind config.

What is a complementary colour?

The colour opposite on the colour wheel.

Are the colours perceptually even?

They use HSL; perceived lightness can vary between hues.

Can I name the variables?

Yes – set the prefix.

How many colours should a UI palette have?

Typically one brand colour, a neutral scale and a few semantic colours.

Can I export to Figma?

Copy the hex values into Figma styles.

Do harmonies keep saturation?

Yes – only hue changes.

Can I generate from an image?

Use the Image Colour Extractor first.

Is the palette accessible?

Each swatch is checked for AA against white and black.

What format is the output?

CSS custom properties.

Can I use OKLCH?

Convert values with the Colour Converter.

Is it free?

Yes – no sign-up and no watermark.

Does anything get uploaded?

No – it all runs in your browser.

Can I use the output commercially?

Yes – the generated code is yours.

Which browsers support the CSS?

All current versions of Chrome, Edge, Firefox and Safari.

Does it work on a phone?

Yes – the tool and preview are responsive.

Can I copy the CSS?

Yes – use the Copy button.

Last reviewed: 8 November 2026.