/ Tool 14
Color Palette Generator
Build an accessible palette in seconds: six harmony modes, one-click lock on the colors you keep, dominant-color extraction from any image, and a live WCAG contrast checker with AA/AAA badges — then export Tailwind, CSS variables, SCSS, or JSON. 100% in your browser, zero uploads.
Extract colors from an image — drag & drop a photo here, or click to browse. The 5 dominant colors replace the unlocked slots. Never uploaded.
Export
One click, copy-readyLive preview
Your palette in a mini UIShip faster with your palette
Buttons, cards, badges and typography rendered with the five colors above. Text color auto-switches for readability.
WCAG contrast check
Badges = normal text (AA 4.5:1 / AAA 7:1). Large text: AA 3:1 / AAA 4.5:1Contrast ratios follow WCAG 2.1/2.2 relative-luminance math. Generated palettes are a starting point — always verify final text/background pairings before shipping.
How It Works
Generate or Extract
Pick a harmony mode and press Space for a new palette, load a preset (Cyberpunk AI, Clean SaaS Slate, Marketing Warmth, Neon Fintech), or drag & drop an image to extract its five dominant colors with a local k-means pass.
Refine & Check Contrast
Lock the colors you love so regeneration keeps them, edit any swatch with the native picker, and watch the WCAG panel score every color against white and black — ratio plus AA/AAA badges for normal and large text.
Preview & Export
The mini UI renders buttons, cards, badges, and typography with your palette in real time. When it feels right, export copy-ready code: Tailwind v3 config, Tailwind v4 @theme, CSS variables, SCSS, or JSON.
Note: generated palettes are a starting point, not a guarantee — the contrast panel uses the official WCAG 2.1/2.2 relative-luminance formula, so always verify final text/background pairings before shipping.
How to Use the Color Palette Generator
Start from a base color — pick one, paste a hex value, or generate a random one. Choose one of the six harmony modes: complementary, analogous, triadic, tetradic, split-complementary, or monochromatic. Each mode derives the rest of the palette from your base using a different geometric relationship on the color wheel, so switching modes on the same base gives you six distinct directions to evaluate.
When a generation lands on a color you like, lock it and keep spinning. Per-color locking is the core workflow: you converge on a palette by freezing the winners and re-rolling only the rest. The built-in WCAG contrast checker runs on every pair, so you can verify text-on-background legibility at the design stage instead of discovering it in QA.
When the palette is settled, export it in the format your stack expects — Tailwind config entries or CSS custom properties — and paste it into your project. The export matches exactly what you see on screen, with no manual transcription of hex values.
Why This Runs 100% in Your Browser
Brand colors are confidential until launch: a palette you are iterating on is a reveal of product direction. Online design tools upload every swatch you touch to their cloud. This generator does not — harmony math, contrast computation, and export all run locally, and no palette is ever transmitted or stored on a server.
You can iterate on a client's brand system on a shared screen or a borrowed laptop without the work leaking into a third party's telemetry.
Code & CLI Equivalents
The generator applies the same color-theory math you can run anywhere. Harmony is simple hue rotation on the color wheel — here are the canonical offsets behind the buttons, as a script for when you need the numbers in a design system.
# python3 — harmony offsets (hue degrees)
def harmony(h, mode):
if mode == "complementary":
return (h + 180) % 360
if mode == "triadic":
return [(h + d) % 360 for d in (0, 120, 240)]
return [(h + d) % 360 for d in (0, 30, 60, 150, 210)] # split-comp
print(harmony(210, "triadic")) # [210, 330, 90] from a blue base Frequently Asked Questions
What are the six harmony modes?
Complementary (base + opposite on the wheel), analogous (neighboring hues), triadic (three evenly spaced hues), tetradic (two complementary pairs), split-complementary (base + the two hues adjacent to its opposite), and monochromatic (one hue at varying lightness). Each is a classic color-theory relationship, applied to your base color.
What does the WCAG contrast checker verify?
It computes the contrast ratio for text-on-background pairs against the WCAG thresholds: 4.5:1 for normal text (AA) and 7:1 (AAA), with the 3:1 threshold for large text. You see pass/fail per pair directly on the palette, so accessibility is a design input, not an audit afterthought.
What does the Tailwind export contain?
Ready-to-paste entries for your Tailwind color configuration, plus a CSS custom-properties block for non-Tailwind projects. The values are exactly the hex colors on screen, so what you approved in the tool is what ships in the build.
Can I keep one color and regenerate the rest?
Yes — that is the per-color lock. Lock any swatch, keep generating, and only the unlocked colors change. Most palettes converge in three or four rounds of lock-and-reroll.
Is my palette saved or sent anywhere?
No. Everything — base color, harmony computation, contrast checks, and export — happens in your browser. Nothing is uploaded, and the tool keeps working with the network disabled.