Skip to content
everylittletool

Color Palette Generator

Build a colour scheme from one base colour and export it as CSS variables.

Runs in your browser — nothing is uploaded

HEX, rgb() or hsl()

Three hues spaced evenly, 120° apart.

base

#2F6FDE

triadic-1

#DE2F6F

triadic-2

#6FDE2F

Export as CSS variables

How to use Color Palette Generator

  1. 1

    Choose a Base colour with the colour box or type a HEX, rgb() or hsl() value.

  2. 2

    Pick a scheme: Complementary, Analogous, Triadic, Split-complementary or Monochrome.

  3. 3

    Click Copy on any swatch to copy its hex code.

  4. 4

    Set a Variable prefix if you like, then click Copy CSS to copy the palette as CSS custom properties.

About this tool

Most schemes here rotate the base colour's hue on the HSL colour wheel while keeping its saturation and lightness. Complementary adds the hue opposite (180°), analogous adds the hues 30° either side, triadic spaces three hues 120° apart, and split-complementary uses the two hues next to the complement, at 150° and 210°. Monochrome keeps the same hue and mixes the base with black and white for two darker and two lighter steps.

Hue rotation keeps saturation and lightness equal on paper, but the eye sees yellows and greens as brighter than blues and purples of the same HSL lightness. If one colour in a triadic set looks louder than the others, nudge its lightness in the Color Picker or HEX converter.

A practical approach is to use one colour for most of the interface, a second for accents and a third sparingly, roughly 60/30/10. The CSS export writes variables such as --color-base: #2f6fde; inside :root, ready to paste into a stylesheet. Check text colours against their backgrounds with the Contrast Checker before you ship.

Questions people ask

What is a complementary colour?

The colour directly opposite on the colour wheel, 180° away in hue. Blue's complement is orange. Together they give the strongest contrast of hue.

What is the difference between triadic and split-complementary?

Triadic uses three hues evenly spaced 120° apart. Split-complementary pairs the base with the two neighbours of its complement, at 150° and 210°, which is a little less intense.

How do I use the CSS variables?

Paste the :root block into your stylesheet and use the colours with var(), for example color: var(--color-base).

Why does a grey base give grey results?

Greys have no saturation, so rotating the hue changes nothing. Choose a base with some colour, or use Monochrome for light and dark steps.