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.

100% Client-Side PrivacyZero Installation

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.

1.01:1✗ AA normal✗ AA large✗ AAA
The quick brown fox jumps over the lazy dog — live preview of this pair.

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.

Your BrandGet started

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.

Primary actionSecondary action

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

  1. 1Pick a seed color with the color picker, or type a hex code — or drop in a photo to extract its dominant colors.
  2. 2Choose a harmony rule (analogous, complementary, triadic, split-complementary, tetradic, monochromatic) or hit Random.
  3. 3Lock the swatches you love, then press Generate or Spacebar to re-roll only the unlocked ones.
  4. 4Check contrast pairs and the color-blindness preview, then judge the palette in the live UI mockup.
  5. 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.

Got Questions?

Frequently Asked Questions

What is a color palette generator?
It creates a set of colors that work well together for websites, branding, UI design and illustration. Start from one seed color, apply a color-theory harmony rule, and get a balanced five-color palette you can copy, export and share.
How do I lock colors while generating?
Click the lock icon on any swatch. Locked colors never change when you press Generate or Spacebar — only the unlocked swatches are re-rolled, so you can refine a palette gradually instead of starting over.
What contrast ratio does text need?
For WCAG AA, normal text needs at least 4.5:1 against its background and large text 3:1; AAA normal text needs 7:1. The built-in pair checker grades any two palette colors against all three bars.
Can I preview my palette for color-blind users?
Yes. The tool simulates protanopia, deuteranopia, tritanopia and achromatopsia across the whole palette, so you can see which pairs collapse before you ship.
Which export formats are supported?
CSS custom properties, a Tailwind config snippet, JSON, an SVG strip and a PNG strip — plus a shareable link that recreates the exact palette for anyone who opens it.
How does image color extraction work?
Your image is drawn onto a canvas in your browser, its pixels are grouped by color, and the most frequent distinct colors become the palette. The image is never uploaded to any server.
Can I use these palettes commercially?
Yes. Color palettes are not copyrightable — use any generated palette in commercial projects, branding, web design or apps without restriction.

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

HarmonyHow it worksBest for
AnalogousHues within ±30° of the seedCalm, cohesive looks — nature, wellness, editorial
ComplementarySeed plus its wheel opposite (±30° variants)Bold contrast — calls to action, sport, entertainment
TriadicThree hues 120° apart, plus two bridge tonesBalanced variety — illustrations, playful brands
Split-ComplementarySeed plus the two neighbours of its oppositeContrast without the punch of a direct opposite
TetradicTwo complementary pairs (rectangle on the wheel)Rich, expressive systems that need many accents
MonochromaticOne hue at five lightness stepsMinimal 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

View all Design & Media Tools