Color Palette Generator
Generate beautiful palettes instantly. Press Space to randomize. Lock colors to keep them.
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:
- Complementary: the base, the hue plus 180 degrees, the base 20 points darker (not below 25%) and 20 points lighter (not above 85%), and the complement 20 points lighter.
- Analogous: hues 15 and 30 degrees either side of the base, same saturation and lightness.
- Triadic: the base, the hue plus 120 and plus 240 degrees, the base 15 points darker and 20 points lighter.
- Monochromatic: the base hue and saturation at lightness 20, 35, 50, 65 and 80%.
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
| Harmony | Swatches (contrast on white) | 4.5:1 on white | 4.5:1 on black |
|---|---|---|---|
| Complementary | #7C3BED 5.67, #ACED3B 1.41, #4B10B1 10.46, #BA98F5 2.36, #D3F598 1.21 | 2 of 5 | 3 of 5 |
| Analogous | #3B53ED 5.76, #503BED 6.58, #7C3BED 5.67, #A93BED 4.63, #D53BED 3.7 | 4 of 5 | 2 of 5 |
| Triadic | #7C3BED 5.67, #ED7C3B 2.78, #3BED7C 1.55, #5513C9 9.04, #BA98F5 2.36 | 2 of 5 | 3 of 5 |
| Monochromatic | #28095D 16.31, #450FA3 11.35, #6316E9 7.44, #925CF0 4.19, #C1A2F6 2.15 | 3 of 5 | 2 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.