Skip to content

Color Palette Generator

7 harmonies, WCAG audit, image extract, 6 export formats.

Share
K 5.7
W 3.7
oklch(61.8% 0.365 217)
K 5.0
W 4.2
oklch(58.3% 0.358 258)
K 6.0
W 3.5
oklch(62.8% 0.325 330)
K 9.8
W 2.1
oklch(76.0% 0.369 38)
K 8.3
W 2.5
oklch(71.4% 0.336 160)

Three adjacent hues, harmonious.Space = regenerate unlocked

:root {
  --color-1: #3b82f6;
  --color-2: #8b5cf6;
  --color-3: #ec4899;
  --color-4: #f59e0b;
  --color-5: #10b981;
}
All processing runs in your browser. Images, palettes never sent.
7
Harmonies
6
Export formats
Unlimited
Free uses per day
AA + AAA
WCAG checks

What is the Color Palette Generator?

A palette generator builds 5-color schemes from a base color using 7 color-theory harmonies (monochrome, complementary, analogous, triadic, tetradic, split-complementary, shades). This one also extracts colors from uploaded images and validates every pair against WCAG 2.1 contrast requirements (AA and AAA, normal + large text).

Most palette tools focus on aesthetics. This one ships a one-click WCAG audit, so a palette that looks great visually also passes accessibility before it ships. Exports CSS variables, Tailwind config (v3 + v4 with OKLCH), SCSS, JSON design tokens, SVG swatches, and Figma Tokens Studio format.

How it works

Step 1
Pick base + harmony
Drop a HEX, click the wheel, or upload an image to extract a base color.
Step 2
Generate
Spacebar regenerates unlocked swatches. Lock the ones you want to keep.
Step 3
Audit + export
WCAG ratings render inline. Copy as CSS, Tailwind, JSON, or SVG.

Features

7 color harmonies
Monochrome, complementary, analogous, triadic, tetradic, split-complementary, shades.
Image color extract
Drop any image; we extract dominant 5 colors via histogram quantization.
WCAG AA + AAA badges
Every swatch shows contrast vs black + white with pass/fail labels.
Lock + regenerate
Spacebar shuffles unlocked swatches. Coolors-style flow, no signup.
CSS + Tailwind v3/v4
Custom properties, Tailwind extend, OKLCH for v4 -copy and paste.
Design-token JSON
Figma Tokens Studio compatible. Import into Style Dictionary or your own design system.
SVG swatch strip
Download as SVG for moodboards, brand decks, README headers.
Browser only
Image processing + math run on your device. Palettes never sent.

Who uses it

Designers
Building brand palettes, exploring harmonies, validating accessibility.
Frontend devs
Copying CSS variables + Tailwind config directly into the codebase.
Product teams
Extracting palettes from product screenshots for marketing alignment.
Students
Learning color theory + WCAG hands-on with instant feedback.

Frequently asked questions

Is the color palette generator free?

Yes. Unlimited use, no signup. Coolors charges $3-12/month for unlimited palettes + image extract; Adobe Color is free but locked into Creative Cloud sync. This one runs entirely in your browser.

Which harmonies does it support?

Seven: Monochrome (single hue, varying lightness), Complementary (base + opposite), Analogous (three adjacent hues), Triadic (three hues 120° apart), Tetradic (four hues 90° apart), Split-complementary, and Shades (Tailwind-style 50→950 ramp).

Can I extract colors from an image?

Yes. Drop a PNG, JPG, or WebP and we extract the dominant 5 colors via histogram quantization. Runs in browser -your image never leaves your device.

Does it check WCAG contrast?

Yes. Every swatch shows its contrast against black and white, plus AA / AAA / Fail badges for normal (4.5:1, 7:1) and large text (3:1, 4.5:1). Pick combos that pass for accessible UI.

Which export formats are supported?

Six: CSS custom properties (--color-1), Tailwind config snippet, SCSS variables, JSON (design-token shape), SVG swatch strip, and Figma Tokens Studio format. One-click copy each.

Does it work with Tailwind v4?

Yes. The Tailwind export includes both v3 (tailwind.config.js extend) and v4 (@theme inline) shapes. OKLCH preview is included for v4 users.

What's WCAG AA vs AAA?

WCAG 2.1 contrast standard. AA: 4.5:1 for normal text, 3:1 for large (18pt+). AAA: 7:1 normal, 4.5:1 large. AA is the legal minimum (ADA, EAA); AAA is the gold standard.

Can I lock specific colors and regenerate?

Yes. Click the lock icon on any swatch; press space or click Generate to regenerate only the unlocked ones. Same Coolors flow, no signup.

Is my data private?

Yes. Math + image processing run in your browser. Uploaded images, color values, exported palettes all stay on your device.

Can I save palettes?

Use the export buttons (CSS / Tailwind / JSON / SVG) to download. No accounts means no saved-palette gallery, but the JSON export is the standard exchange format for design tokens -import into Style Dictionary, Figma Tokens, or your own design system.

Generate a palette

7 harmonies, image extract, WCAG audit, 6 export formats. Free unlimited.

Open the generator

Related developer + design tools

Math + image processing run in your browser. Palettes never leave your device.
Built and reviewed bySaqib Zahoor, WeboTech Studio
Last updated:

The Color Palette Generator page is built, reviewed, and maintained by the Molixa team. We use the tool we ship and update the docs when the behavior changes.