Color Palette Generator

Color palette generator: pick a base hue and get 3 to 10 evenly spaced colors (triadic, square and more) with HEX codes to copy.

Runs in your browser. Files never leave your device.
#3c71dd
#c73cdd
#dd473c
#b2dd3c
#3cdd87
#3c71dd
Blue
#c73cdd
Purple
#dd473c
Red
#b2dd3c
Yellow
#3cdd87
Green

About the Color Palette Generator

Create a colour palette from a single base hue. Move the hue slider to your starting colour and choose 3 to 10 colours. The generator spaces them evenly around the colour wheel and gives each a HEX code you can copy on its own or as part of a list. It works well for charts, UI accents, illustrations and quick brand moodboards.

All the colours in a scheme share the same saturation and lightness, so none of them overpowers the others. Each swatch is labelled with its HEX code and a plain name such as Blue or Orange.

How the colour scheme is built

Colours are worked out in HSL: hue, saturation and lightness. Hue is an angle on the colour wheel from 0 to 360°, with red at 0°, green at 120° and blue at 240°. Starting from your base hue, the generator adds 360° divided by the number of colours at each step, so 4 colours land 90° apart and 6 colours 60° apart.

Saturation stays at 70% and lightness at 55% for every swatch, which is bright enough to stand out without looking neon. Each HSL value is then converted to RGB with the standard formula, every red, green and blue channel is rounded to a whole number from 0 to 255, and the three are written as a six-digit HEX code.

Three colours give a triadic scheme (120° apart), four a square or tetradic scheme, six a hexadic spread, and ten a full rainbow in 36° steps.

hue of colour i = (base hue + i × 360 ÷ n) mod 360, for i = 0 … n − 1
saturation = 70% · lightness = 55%
HEX = #RRGGBB, each channel 0–255 written as two hex digits

Assumptions and limits

  • Saturation and lightness are fixed, so pastel, dark or muted palettes aren't possible here. Take a HEX code into a design tool or the Color Converter to make tints and shades of it.
  • Colours are always spread evenly round the whole wheel. Analogous and split-complementary schemes aren't made directly, though with 10 colours neighbouring swatches are 36° apart and work as an analogous set.
  • Equal HSL lightness doesn't mean equal brightness to the eye: at 55% yellow and green look far lighter than blue or purple. Check text on these colours with the Contrast Checker before using them for buttons or labels.
  • Names cover broad hue bands (Red below 30°, Orange from 30°, Yellow from 60° and so on), so two swatches can share a name.
  • Clicking a swatch copies its code; Copy All HEX gives every code separated by a comma and a space.

Worked examples

The default palette: base hue 220°, 5 colours

Steps of 72° give a balanced five-colour set for a chart or dashboard legend.

220° #3c71dd Blue
292° #c73cdd Purple
  4° #dd473c Red
 76° #b2dd3c Yellow
148° #3cdd87 Green

A triadic color scheme from orange

Base hue 30° with 3 colours gives orange, cyan and purple, 120° apart: a lively set for a children's app or an event poster.

 30° #dd8c3c Orange
150° #3cdd8c Cyan
270° #8c3cdd Purple

A square scheme for four categories

Base hue 0° with 4 colours gives four clearly different hues for a pie chart or a set of tags.

  0° #dd3c3c Red
 90° #8cdd3c Green
180° #3cdddd Cyan
270° #8c3cdd Purple

How to use the Color Palette Generator

  1. Choose a base hue. Drag the Base Hue slider from 0° to 360°; the first swatch is exactly that hue.
  2. Pick how many colours. Set Colors from 3 to 10 and the swatches re-space themselves around the wheel straight away.
  3. Copy the HEX codes. Click any swatch for its code, or press Copy All HEX for the full list.

Frequently asked questions

How do I generate a color palette from one colour?

Find your colour's hue, the H in its HSL value (the Color Converter shows it), and set the Base Hue slider to that number. The first swatch has that hue at 70% saturation and 55% lightness, and the rest are spaced evenly around the wheel from it.

What is a triadic color scheme?

Three colours spaced 120° apart on the colour wheel, such as red, green and blue, or orange, cyan and purple. Set Colors to 3 to get one from any base hue. Because triadic schemes are so vibrant, designers usually let one colour lead and keep the other two as accents.

How many colours should a palette have?

Three to five main colours plus neutrals such as white, grey and near-black is common for a website or app: a primary, one or two accents and a highlight. Charts need one colour per category, so match the count to your data, up to 10 here.

Can I use these colours for text?

With care. At 55% lightness they are mid-tones. White text reaches the WCAG 4.5:1 ratio for body text only on some blues and purples (4.6:1 on #3c71dd, 5.5:1 on #8c3cdd); reds fall just short at about 4.2 to 4.4:1, and on yellow, green and cyan swatches it drops below 2:1, where near-black text works instead. Large bold headings need only 3:1; check each pair before you use it.

What's the difference between HSL and HEX?

Only the notation: both describe the same colour. HSL uses hue, saturation and lightness, which makes it easy to step around the wheel the way this tool does. HEX writes the red, green and blue channels as two hexadecimal digits each, the format CSS and most design tools accept.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.