Color Palette Generator
Generate beautiful color palettes — press space, lock the ones you like, share the link.
Press space to spin up a balanced five-color palette, lock the colors you love, and copy a link that recreates the exact scheme for anyone you send it to. Free. No sign-up. Runs in your browser, nothing is uploaded.
Click the palette, then press space to generate. Click the lock to keep a color, the gear to edit it, and the hex label to copy it. Every change updates a shareable link in the address bar.
Press Generate (or the space bar while the palette has focus) and you get a fresh five-color scheme. Lock the colors you want to keep and only the others reroll. Choose a harmony to steer how the hues relate, click a hex code to copy it, and export the whole set as CSS variables, a Tailwind config or a JSON array. Copy share link gives you a URL that rebuilds the exact palette for whoever opens it.
How each harmony mode builds its five colors
Every palette starts from a random base hue and a random saturation between 55% and 80%. The harmony decides which hues join it:
| Mode | Hues used | Feels |
|---|---|---|
| Analogous | five neighbors, each 18–32° apart | calm, cohesive |
| Complementary | three around the base, two from the opposite side (+180°) | strong contrast, natural accent |
| Triadic | three hues 120° apart, plus two variants shifted by 18° | vivid but balanced |
| Monochrome | one hue, saturation easing off from dark to light | safe, minimal |
| Auto | neighbours 20–50° apart with a little random jitter | varied but friendly |
What every mode shares is the lightness ladder: from left to right the swatches sit at roughly 22%, 38%, 54%, 70% and 86% HSL lightness. That's deliberate. Five colors at the same brightness look pretty in a row and are useless in an interface, because nothing can sit on top of anything else. With a ladder, the darkest swatch can carry text and the lightest can be a background.
Turning five swatches into an interface: the 60-30-10 rule
A palette still needs a plan for how much of each color to use. The classic guideline from interior and graphic design is 60-30-10:
- 60% dominant color, usually the lightest swatch or a neutral, for page backgrounds.
- 30% secondary color for structure: cards, sections, headers.
- 10% accent, the most saturated swatch, saved for buttons, links and anything that must be noticed.
Mapped onto a generated palette: swatch 5 (lightest) as the 60%, swatch 4 or 3 as the 30%, the most saturated mid-tone as the accent, and swatch 1 (darkest) for text. Keep the accent rare: if everything is loud, nothing stands out.
Here is that mapping for an analogous palette the generator can produce (base hue 210°, saturation 65%), with the contrast ratio of each swatch where it would carry text:
| Swatch | Role | Contrast check |
|---|---|---|
#145D44 (1, darkest) | body text, footer | 4.85:1 on swatch 5, 7.84:1 on white: passes AA |
#2295A0 (2) | secondary buttons | white text 3.57:1: large text only |
#3D8AD6 (3) | accent, links | white text 3.62:1: large text only |
#8189E4 (4) | illustrations, charts | 3.17:1 on white: decoration only |
#D4C4F3 (5, lightest) | page or card background | not for text |
The pattern is typical: the ends of the ladder carry text, the middle swatches carry color. If a mid-tone has to work as a button with white label text, darken it a step or two in the Color Shade Generator until it passes 4.5:1.
Checking the palette is readable
Pretty doesn't mean legible. Before you ship, check the actual text-on-background pairs in the Color Contrast Checker: at least 4.5:1 for normal text and 3:1 for large text under WCAG AA. Typical failures in generated palettes are white text on the 54% swatch and swatch 3 text on swatch 5. Also run the palette through the Color Blindness Simulator: complementary schemes built on red and green can merge for about 1 in 12 men.
What the exports look like
CSS variables are numbered from dark to light:
:root {
--color-1: #1f2937;
--color-2: #374151;
...
}
Tailwind config puts them under palette, so you write bg-palette-500 or text-palette-100. It uses the tailwind.config.js format of Tailwind v3; for v4, paste the CSS variables into @theme. JSON array is a plain list of five hex strings, handy for design tokens or scripts.
Rename them once you know their roles. --color-3 tells a teammate nothing; --brand-accent does. For a full 50–950 scale of any single color, the Tailwind Theme Generator and the Color Shade Generator take one swatch and expand it.
Sharing, bookmarking and coming back later
Each change rewrites the page address, so the link in your address bar is the palette. Bookmark it, paste it into a ticket or a design-review chat, and anyone who opens it sees the same five colors, locks included. No account and no stored copy are involved, which also means that if you lose the link, the palette is gone, so save the links you like.
If you'd rather start from a photo than from chance, the Image Color Palette Extractor pulls a scheme out of a picture. To blend two swatches into a background, hand them to the CSS Gradient Generator.
Frequently asked questions
Related tools
All Color tools →- Color ConverterConvert any color between HEX, RGB and HSL instantly — pick, preview and copy in one place.
- CSS Gradient GeneratorBuild linear and radial CSS gradients with two colour stops, an angle slider and a live preview — then copy the code.
- Image Color Palette ExtractorPull the dominant color palette out of any image — right in your browser.
