🎨Color Palette Generator

Generate harmonious color schemes

Tips:

  • Click 🔒 to lock a color, keeping it when generating
  • Click the color code to copy to clipboard
  • Generate randomises the swatches; choosing a harmony mode re-derives them from the base colour using hue math
:root {
  --color-1: #264653;
  --color-2: #2a9d8f;
  --color-3: #e9c46a;
  --color-4: #f4a261;
  --color-5: #e76f51;
}

How to Use

The Color Palette Generator builds harmonious palettes. Pick complementary, analogous, triadic, split-complementary or monochromatic and the swatches are derived from a base colour with real hue math (±30°, ±120°, ±150°, 180°) — lock swatches, choose the base, and copy HEX or CSS variables.

FAQ

What are complementary colors?

Complementary colours sit opposite each other on the wheel — 180° apart, like red and cyan — and create strong contrast. This tool actually computes base + 180° rather than picking at random.

How to choose a good color scheme?

Use the 60-30-10 rule: dominant color 60%, secondary 30%, accent 10% for visual hierarchy.

What does the lock do?

The padlock on each swatch pins that color: pressing space or the regenerate button keeps locked swatches unchanged while the rest reroll — perfect for building palettes around a color you like.

Can I export CSS variables?

Yes. Copy CSS exports every swatch as a --color-1 through --color-n custom property declaration; paste it into :root and the variables are ready to use across your project.