Color Palette Generator
Generate accessible color palettes from one base hex. Eight harmony modes, lock + re-roll workflow, and exports for CSS variables, Tailwind config, SCSS, or JSON.
- Runs in browser
- No signup
- No tracking
How to use Color Palette Generator
Pick a base color (hex or color picker).
Choose a harmony mode — analogous is a safe default.
Click Generate, then lock swatches you want to keep.
Re-roll until you like the rest.
Pick an export format and copy the snippet.
When to use it
Designing a brand palette from a single seed color.
Building a marketing site theme.
Generating CSS variables for a design system.
Exploring color harmonies for an illustration.
What it fixes
Guessing complementary or triadic hues by eye.
Manually computing shade or tint ramps.
Rewriting palettes for CSS, Tailwind, and SCSS by hand.
About Color Palette Generator
Designers reach for palette generators when a project needs more than one or two brand colors. This tool starts from a base hex and applies classic color-theory harmonies — complementary, analogous, triadic, tetradic, split-complementary, monochromatic — plus pure shade and tint ramps.
Lock the swatches you like, re-roll the rest. Each swatch displays in HEX, RGB, HSL, or OKLCH. When you're done, export the whole palette as CSS custom properties, Tailwind config snippet, SCSS variables, or a plain JSON object.
References: Adobe — color harmony rules · Bjorn Ottosson — OKLCH
Frequently asked
What are harmony modes?
Classic color theory relationships: complementary (opposite), analogous (neighbors), triadic (evenly spaced thirds), tetradic (four quadrants), split-complementary, monochromatic, shades (darken), and tints (lighten).
How does locking work?
Click the lock icon on any swatch to freeze it. Re-roll only regenerates unlocked swatches, so you can iterate on the rest without losing your favorites.
Why does the same harmony look different each time?
Within a harmony, the lightness and the order of unlocked swatches are tweaked on re-roll so you can explore variations without picking a new base color.
What is OKLCH?
A modern, perceptually uniform color space. Equal numeric steps look equal to the eye, which makes palette ramps look balanced instead of muddy in the middle.
Can I edit a swatch directly?
Yes — type any hex into a swatch input. The display formats (RGB / HSL / OKLCH) update live.
How do I use the Tailwind export?
Copy the snippet and drop it into your `tailwind.config.js` under `theme.extend.colors`. Each swatch becomes a named brand color you can use as `bg-brand-1`, `text-brand-2`, etc.
Discussion
Related tools
All toolsGradient Generator
Visual CSS gradient builder — linear, radial, conic. Multi-stop, presets, copy CSS or Tailwind.
VisualIcon Downloader
Search 200K+ icons across Lucide, Heroicons, Tabler, Phosphor, Font Awesome, Material. Recolor, copy SVG, download PNG.
VisualMarkdown Preview
Live GitHub-flavored markdown preview. Sanitized HTML output, copy or download as .html.
Visual