Free Color Palette Generator
Generate free color palettes from any seed color — or from a photo. Lock the swatches you love, regenerate the rest with one click or the spacebar, check every pair against WCAG contrast, preview how the palette reads for color-blind users, and export production-ready CSS, Tailwind, SVG or PNG. Whether you are branding a startup, theming a website, or picking UI colors for an app, this generator turns color theory into a finished, accessible palette in seconds — entirely in your browser, with no sign-up.
Tip: press Space to generate a new palette. Click a swatch to copy it; lock the ones you love first — locked swatches never change.
#05941F
Text on this color: 5.26:1
#059443
Text on this color: 5.32:1
#059467
Text on this color: 5.44:1
#05948B
Text on this color: 5.62:1
#057A94
Text on this color: 4.98:1
WCAG contrast checker
Pick a text color and a background color from your palette. AA normal text needs 4.5:1, large text 3:1, AAA normal text 7:1.
Color-blindness preview
How your palette reads for people with common color-vision deficiencies. If two swatches collapse into one, don't rely on that pair alone to communicate meaning.
Protanopia (red-blind)
Deuteranopia (green-blind)
Tritanopia (blue-blind)
Achromatopsia (total color blindness)
Live UI preview
Your palette applied to a small landing page, so you can judge it in context before you export.
Design that feels intentional
A short hero paragraph shows how body text sits on the palette — swap the pair checker above if this combination fails contrast.
Card headline
Cards, badges and alerts inherit the same five colors.
Tints & shades of #05941F
Click any step to copy it. The 100–1000 scale mirrors Tailwind's naming, so it drops straight into a design system.
Export your palette
Developer-ready code, or a visual strip for docs and handoff.
:root {
--color-1: #05941F;
--color-2: #059443;
--color-3: #059467;
--color-4: #05948B;
--color-5: #057A94;
}Extract from image
Drop an image to pull its dominant colors. Processed entirely in your browser — zero uploads.
🖼️
Drop image here or click to browse
How to Use
- 1Pick a seed color with the color picker, or type a hex code — or drop in a photo to extract its dominant colors.
- 2Choose a harmony rule (analogous, complementary, triadic, split-complementary, tetradic, monochromatic) or hit Random.
- 3Lock the swatches you love, then press Generate or Spacebar to re-roll only the unlocked ones.
- 4Check contrast pairs and the color-blindness preview, then judge the palette in the live UI mockup.
- 5Export CSS variables, a Tailwind snippet, JSON, SVG or PNG — or copy the share link and send the exact palette to anyone.
Key Features
- ✓
Lock colors, regenerate the rest
Found a shade you love? Lock it and hit Generate (or Spacebar) again — only the unlocked swatches change. Refine a palette gradually instead of starting from scratch after every generation.
- ✓
Six harmony rules, one random mode
Analogous, complementary, triadic, split-complementary, tetradic and monochromatic harmonies, all computed on the color wheel — plus a random mode that picks a fresh base hue and harmony for pure exploration.
- ✓
WCAG contrast checker built in
Every swatch shows its best text color and ratio, and the pair checker grades any two palette colors against AA normal (4.5:1), AA large (3:1) and AAA (7:1) — so accessible combinations are decided before handoff, not after.
- ✓
Color-blindness preview
See the whole palette as it appears with protanopia, deuteranopia, tritanopia and achromatopsia. If two swatches collapse into one, you know not to rely on that pair alone for meaning.
- ✓
Live UI mockup preview
Your palette is applied instantly to a small landing page — nav, hero, buttons and a card — so you can judge it in context rather than as five abstract strips.
- ✓
Exports developers can paste
CSS custom properties, a Tailwind config snippet, JSON, an SVG strip and a PNG strip — plus a shareable palette link that recreates the exact five colors for a teammate or client.
- ✓
Image to palette, privately
Drop a photo, logo or moodboard and the tool extracts its dominant colors in your browser. Nothing is uploaded — the image never leaves your device.
- ✓
Tints & shades for every swatch
Click any swatch to expand a 100–1000 tint-and-shade scale in Tailwind-style steps, ready for hover states, borders, backgrounds and disabled controls.
Frequently Asked Questions
What is a color palette generator?
How do I lock colors while generating?
What contrast ratio does text need?
Can I preview my palette for color-blind users?
Which export formats are supported?
How does image color extraction work?
Can I use these palettes commercially?
What is a color palette — and why harmony rules matter
A color palette is a small set of colors chosen to work together across a design: a brand, a website, a slide deck, an app. The reason some palettes feel instantly professional while others feel random is almost always the geometry of the color wheel. Colors that sit at predictable angles from each other — neighbours, opposites, evenly spaced trios — read as intentional, because the relationships between them are consistent even before anyone analyses why.
This generator builds every palette from those relationships. Pick a seed color that represents the brand or mood, choose a harmony rule, and the wheel does the rest. Lock the swatches that already feel right, regenerate the others, and stop when the set feels like one family rather than five strangers.
The six harmony rules, and when to use each
| Harmony | How it works | Best for |
|---|---|---|
| Analogous | Hues within ±30° of the seed | Calm, cohesive looks — nature, wellness, editorial |
| Complementary | Seed plus its wheel opposite (±30° variants) | Bold contrast — calls to action, sport, entertainment |
| Triadic | Three hues 120° apart, plus two bridge tones | Balanced variety — illustrations, playful brands |
| Split-Complementary | Seed plus the two neighbours of its opposite | Contrast without the punch of a direct opposite |
| Tetradic | Two complementary pairs (rectangle on the wheel) | Rich, expressive systems that need many accents |
| Monochromatic | One hue at five lightness steps | Minimal interfaces, single-brand systems, dashboards |
How many colors does a website actually need?
Five is the sweet spot most design systems land on: a primary for brand elements and main actions, a secondary for supporting actions, an accent for highlights, a surface/background tone, and a text tone. Everything else — hover states, borders, disabled controls, dark-mode variants — should be tints and shades of those five, not new hues. That discipline is what makes a site feel like one product instead of a collage, and it is why every swatch here expands into a 100–1000 scale.
If the palette is for a brand rather than a screen, the same five still work: primary and secondary carry the identity, the accent carries attention, and the two neutrals carry everything the brand prints, posts or packages.
Making a palette accessible, not just pretty
A palette can look beautiful and still fail the people who need to read it. The WCAG thresholds are simple: normal text needs a contrast ratio of at least 4.5:1 against its background for AA (7:1 for AAA), and large text needs 3:1. The pair checker above grades any two palette colors against all three bars, and every swatch already shows whether black or white text reads better on it.
Contrast alone is not enough. Around 1 in 12 men and 1 in 200 women live with some color-vision deficiency, so a design that communicates only through color — red for error, green for success, two similar hues for two chart series — will mislead them. Preview the palette under protanopia, deuteranopia, tritanopia and achromatopsia before shipping, and pair color with labels, icons or patterns wherever the distinction matters. For a deeper check of any single pair, use the color contrast checker.
From palette to production
A finished palette should move into code without retyping. Copy the CSS variables block straight into a stylesheet, paste the Tailwind snippet into a config, or download the SVG/PNG strip for a brand sheet or client deck. The share link encodes the exact five colors, so a teammate opening it sees the same palette you approved — no screenshots, no "close enough".
Starting from a photo instead of a color? Drop it in the extractor and use the dominant colors as the palette, or take one extracted color as a seed and grow a harmony around it. For the rest of the design workflow, browse the full design tools collection — including the image compressor for web-ready assets.
Common mistakes to avoid
- Adding a sixth, seventh, eighth hue. When a design feels flat, the fix is usually a tint, shade or better spacing — not another unrelated color.
- Judging colors only as strips. Always preview them as text, buttons and cards. A combination that looks fine as blocks can be unreadable as an interface.
- Trusting a palette you have only seen once. Check it under color-blindness simulation and at small sizes before it becomes a brand asset.
- Locking nothing and regenerating everything. Lock the swatches that work and iterate on the rest — that is how a random draw becomes a deliberate palette.
- Copying hex codes by hand into code. Paste the export instead. One transposed character is a brand inconsistency that nobody notices until a client does.
Related Tools You Might Like
Handy utilities in Design & Media Tools
Color Contrast Checker
Check color contrast ratios against WCAG 2.2 AA and AAA accessibility standards. Ensure text readability for web designs with our free checker.
Image Compressor
Compress JPG, PNG and WebP images online for free — by quality slider or to an exact size like 100 KB. Batch ZIP download. No uploads, no sign-up.
Design Toolkit Unit Calculator
Convert pixels to REM, calculate modular typographic scales, and compute responsive fluid font clamps. Free calculator for UI and UX designers.