Account

What new tool do you want?

Developer Tools

Color Palette Generator

Generate harmonious color palettes — complementary, analogous, triadic, split-complementary and monochrome — from any base color, with CSS variables to copy.

How to use

  1. 1Pick a base color (or press Random) and choose a harmony rule.
  2. 2Click a swatch to copy its HEX, or copy the whole palette as CSS variables or Tailwind config.

How it's calculated

Harmonies rotate the hue on the color wheel: complementary +180°, triadic ±120°, analogous ±30°, split-complementary 180° ± 30°. Shades vary lightness in HSL.

Frequently asked questions

How many colors should a brand palette have?

Typically a primary, a secondary or accent, and neutrals — plus shades of each for hover, borders and backgrounds.

What is the 60-30-10 rule?

Use a dominant color for about 60% of a design, a secondary for 30% and an accent for 10%.

How do I check the colors are accessible?

Use the contrast checker — body text needs at least 4.5:1 against its background.

Every harmony rule is just hue rotation with different angles

Under the hood each option takes your base color's hue and offsets it by a fixed amount: analogous samples ±30° and ±60°, complementary jumps 180°, triadic spaces three colors 120° apart, split-complementary pairs the base with two colors 150° and 210° away, and tetradic places four colors 90° apart around the wheel. Monochrome skips hue entirely and only varies lightness. Knowing the actual math makes it easy to predict roughly what you'll get before you even click.

Worked example: analogous harmony from #2563eb

Starting from #2563eb (a mid-tone blue) with Analogous selected — the tool's default — produces five swatches: #25ebad, #25c6eb, #2563eb, #4a25eb and #ad25eb, labeled primary, secondary, accent, muted and highlight in that order. Notice the third swatch, "accent," is your original base color completely unchanged (0° offset) — the other four are ±30°/±60° rotations at the same saturation and lightness.

The labels are positional, not semantic

"Muted" and "highlight" always refer to the 4th and 5th swatch regardless of which harmony you pick — they don't mean "a desaturated color" or "an attention-grabbing color" by definition. For Complementary, for instance, the five outputs are actually: the base, a lighter tint of the base, the true complement (180°), a lighter tint of the complement, and a darker shade of the complement — so "highlight" there is a darkened complementary color, not necessarily what you'd reach for as a UI highlight. Worth checking the actual hex values rather than trusting the label alone.

A full Tailwind scale, separate from the harmony swatches

Independent of whichever harmony is selected, the tool always generates a 10-step 50–900 tint/shade scale from the base color alone by varying HSL lightness at a fixed hue and saturation, exported as ready-to-paste CSS custom properties or a Tailwind colors.brand config block — useful for hover states and borders even if you only ever use the one base color.

Worked example: what monochrome actually produces

Monochrome is the one harmony that doesn't rotate hue at all — it holds hue and saturation fixed and only steps lightness through five values (90%, 75%, 60%, 45%, 30%). Run it on #2563eb (hue ≈221°, saturation ≈83%) and the five swatches come out to #d0defb, #8aabf4, #4479ee, #134fd2 and #0d358c — a clean light-to-dark ramp of the same blue, verified directly against the underlying lightness formula. That predictability is exactly why monochrome is the safest pick for a UI that needs several shades of one brand color without ever risking an odd, unrelated hue creeping into the set.

Why the Random button won't repeat if you mash it

Pressing Random doesn't draw from JavaScript's Math.random() — it uses the same cryptographically-backed secureRng() the site's other generator tools rely on, picking a fresh hue, saturation and lightness combination each time. It's overkill for picking a color (nothing here needs to be unguessable), but it does mean the base color is genuinely uniformly distributed across the wheel rather than subtly biased toward values Math.random() happens to favor over millions of calls — the same reasoning applies if you're using this to seed a design system and want to avoid accidentally clustering around similar hues.

Related tools

More: Developer Tools