Color Palette Generator

Generate beautiful palettes instantly. Press Space to randomize. Lock colors to keep them.

Base Color:
Who this tool is for:

Best for: Generating a five colour palette from one brand hex, and building complementary, analogous, triadic or monochromatic schemes from a starting colour

Limitations: Exports a CSS file of custom properties or a comma-separated HEX list rather than a Figma or Sketch file, so importing means an extra manual step, and it does not check contrast

Best suited for: Small business owners building a brand palette from a single colour they already like

How the Palette Generator Builds Each Palette

Press Generate or Space for a new palette; the lock under a swatch keeps it. For the four harmony types the tool converts the Base Color to whole-number HSL, changes the hue or lightness, and converts back, so #7C3AED (hsl(262, 83%, 58%)) returns as #7C3BED. The rules in the code:

Random, Pastel and Dark ignore the Base Color and call Math.random: Random picks any integer from 0 to 16,777,214, Pastel any hue at saturation 25 to 45% and lightness 78 to 90%, Dark saturation 40 to 80% and lightness 15 to 35%.

#7C3AED Through Each Harmony

Complementary, analogous, triadic and monochromatic sets generated from #7C3AED, each swatch labelled with its contrast ratio on white.
Computed with this tool's own palette rules and the site's contrast code, not a test with people.
HarmonySwatches (contrast on white)4.5:1 on white4.5:1 on black
Complementary#7C3BED 5.67, #ACED3B 1.41, #4B10B1 10.46, #BA98F5 2.36, #D3F598 1.212 of 53 of 5
Analogous#3B53ED 5.76, #503BED 6.58, #7C3BED 5.67, #A93BED 4.63, #D53BED 3.74 of 52 of 5
Triadic#7C3BED 5.67, #ED7C3B 2.78, #3BED7C 1.55, #5513C9 9.04, #BA98F5 2.362 of 53 of 5
Monochromatic#28095D 16.31, #450FA3 11.35, #6316E9 7.44, #925CF0 4.19, #C1A2F6 2.153 of 52 of 5

Equal HSL lightness is not equal contrast: all five analogous swatches have lightness 58% yet run from 3.7:1 to 6.58:1 on white. The wheel is the HSL one, built on screen RGB (0 degrees red, 120 green, 240 blue), so purple at 262 pairs with 82, the yellow green #ACED3B; it does not model paint. Method and data: How We Test.

Frequently Asked Questions

In this tool it is the base color plus the hue opposite it on the HSL wheel, 180 degrees away, with a darker and a lighter base and a lighter complement. For #7C3AED the complement is #ACED3B. The two differ strongly in hue but not in contrast on white: 5.67:1 for the base swatch, 1.41:1 for the complement.
The harmony types convert the base to HSL rounded to whole numbers, hsl(262, 83%, 58%), and convert it back. That rounding moves green from 58 to 59. The Base Color field keeps your original hex if you need it exactly.
Not by design. The rules only rotate the hue and shift lightness; nothing checks contrast. Computed for #7C3AED, between 2 and 4 of the five swatches in each harmony reach 4.5:1 on white. Check every text and background pair in the Contrast Checker before using it.
No. Random, Pastel and Dark use Math.random with no seed, and the tool keeps no history. Lock the swatches you like or copy their hex codes before generating again.
Download CSS saves palette.css with the five colors as the custom properties --color-1 to --color-5. Copy All HEX copies them as a comma-separated list for pasting elsewhere. There is no JSON, image or direct Figma export.
Related Tools

Get fresh reads straight to your inbox

Get notified when we publish new articles. Unsubscribe anytime.