Color Palette Generator
NEWGenerate harmonious color palettes (complementary, analogous, triadic) and export them as CSS, HEX or PNG.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
- #3B82F6rgb(59, 130, 246) · hsl(217, 91%, 60%)
- #F6AF3Brgb(246, 175, 59) · hsl(37, 91%, 60%)
- #89B4FArgb(137, 180, 250) · hsl(217, 92%, 76%)
- #FACF89rgb(250, 207, 137) · hsl(37, 92%, 76%)
- #0A57D6rgb(10, 87, 214) · hsl(217, 91%, 44%)
Quick Examples
Typical inputs and the results this tool produces.
Overview
A good colour palette starts from colour harmony: hues that sit at fixed angles on the colour wheel look balanced together. This colour palette generator takes one base colour, converts it to HSL and rotates the hue to build complementary (180°), analogous (±30° steps), triadic (120°), tetradic (90°), split-complementary (150° and 210°) and monochromatic (one hue, many lightness levels) palettes.
Prefer to explore? Switch to Random, press Generate and lock the swatches you like — locked colours survive every regeneration, so you can keep a brand colour and shuffle the rest. Choose 2 to 8 colours, read the HEX, RGB and HSL value of every swatch, and click Copy on any of them.
Export the whole palette as CSS custom properties, a plain HEX list, a Tailwind config snippet or a JSON array, or download a PNG strip with the HEX codes written on it for moodboards and slides. Everything is calculated in your browser; nothing is uploaded.
Why use this tool?
- Build balanced palettes from one base colour with proven colour-wheel rules
- Lock favourite swatches and shuffle the others
- Copy HEX, RGB and HSL values with one click
- Export CSS variables, Tailwind config, JSON or a PNG strip
- Free, private, no sign-up
Features
Six harmony rules
Complementary, analogous, triadic, tetradic, split-complementary and monochromatic from any base colour.
Random palettes
Generate pleasant random colours and keep the ones you like with the lock button.
Lock colours
Locked swatches stay in place when you change the harmony, count or regenerate.
Copy any value
HEX copy per swatch plus RGB and HSL values shown for every colour.
Multiple exports
CSS variables, HEX list, Tailwind config snippet and JSON array.
PNG strip
Download the palette as a labelled PNG image for moodboards and presentations.
How to Use
Pick a base colour
Use the colour picker or type a HEX code such as #3b82f6 (3-digit HEX works too).
Choose a harmony
Select complementary, analogous, triadic and so on, and set 2–8 colours. Or choose Random.
Lock and regenerate
Lock swatches you want to keep, then press Regenerate or Generate random.
Export
Pick CSS variables, HEX, Tailwind or JSON and copy it, or download the PNG strip.