Skip to main content

Color Palette Generator

Build color palettes from one base color using color-wheel rules. Copy HEX codes.

Built and tested by Muhammad Irfan Liaqat · Updated

#2563eb
H:221 S:83 L:53
#4a25eb
H:251 S:83 L:53
#ad25eb
H:281 S:83 L:53
#25c6eb
H:191 S:83 L:53
#25ebad
H:161 S:83 L:53

Color Palette Generator: key facts

  • Builds a five-colour palette from one base colour
  • Schemes: analogous, complementary, triadic, split complementary and monochromatic
  • Copy each HEX code or export the palette as CSS custom properties
  • A random button picks a new base colour

How color harmony rules build a palette

Pick a base colour and a harmony rule, and the palette generator builds a set of five colours that work together. The rules are complementary, analogous, triadic, split-complementary and monochromatic, and the Random button picks a new base colour if you want ideas. Click any swatch to copy its HEX code, or export the palette as CSS custom properties.

Each rule comes from positions on the colour wheel. Complementary pairs your base with the colour opposite it (180° away) for strong contrast. Analogous uses neighbours 30° and 60° either side for a calm look. Triadic spaces three hues 120° apart. Split-complementary uses the two hues either side of the opposite, at 150° and 210°. Monochromatic keeps one hue and varies its lightness. Harmony does not guarantee readability, so check text and background pairs for contrast before using them.

How to build a color palette

  1. 1Pick a base colour or enter its HEX code
  2. 2Choose a scheme: analogous, complementary, triadic, split-complementary or monochromatic
  3. 3Click any swatch to copy its HEX code
  4. 4Click Export to copy the palette as CSS custom properties

Frequently Asked Questions

What colour schemes are available?
Analogous (neighbouring hues), complementary (opposite hues), triadic (three evenly spaced hues), split-complementary (the base plus the two hues beside its opposite) and monochromatic (shades of one hue). Random picks a new base colour.
How do I use a five-colour palette in a design?
A common approach is the 60-30-10 rule: use one colour for about 60% of the design, a second for 30% and an accent for 10%, such as buttons and links. Keep the remaining colours for states and details.
What is colour harmony?
Colour harmony is the idea that colours chosen by set positions on the colour wheel look balanced together. Complementary, analogous and triadic schemes are the most widely used.
Can I export the palette?
Yes. Export copies the colours as CSS custom properties that you can paste into a stylesheet.
How do I find colours that go with a colour I already have?
Enter its HEX code as the base colour and try the schemes. Analogous gives calm, related colours; complementary and split complementary give contrast for buttons and highlights.
How do I export the palette to CSS?
Press Export CSS. It copies a :root block with the colours as --color-1 to --color-5, which you can paste into a stylesheet and use as var(--color-1).
Does it check colour contrast for accessibility?
No. Check text and background pairs with a contrast checker; WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text.
Can it make a palette from a photo?
No, palettes are built from a single base colour. Use the colour picker to find the HEX code of a colour you like, then use it as the base.

Related Tools

Guides