EN

Color Palette Generator

Press Generate (or the space bar) for a new color scheme. Lock the colors you want to keep, switch the harmony mode, and copy the result as HEX codes, CSS custom properties or a Tailwind config.

Aa AA
Aa AA
Aa AA
Aa AA
Aa AA

Tip: press the space bar to generate. Click a code to copy it.

:root {
  --color-1: #1FEDDE;
  --color-2: #29D9B1;
  --color-3: #40A458;
  --color-4: #008D59;
  --color-5: #005F63;
}

How to use it

  1. Pick a mode: Random for surprises, or a harmony mode (analogous, complementary, monochromatic, triadic) for a scheme built on color-wheel rules.
  2. Press Generate or the space bar. Click the lock on any color to keep it; the next palette is built around the first locked color.
  3. Check the label on each swatch: it shows whether white or black text on that color passes WCAG 2.x AA for normal text.
  4. Copy one HEX code, all codes, CSS variables or a Tailwind snippet. Copy share link gives a link to exactly this palette.

How the palettes are made

Colors are built in OKLCH, a color space where equal steps in lightness look like equal steps to the eye, then converted to sRGB HEX codes. Every palette passes three checks before you see it: lightness stays between very dark and very light (no pure black or white unless you lock it), chroma is capped so colors do not turn neon, and neighbouring colors are far enough apart to tell them apart. At least one pair in each palette reaches a 4.5:1 contrast ratio, so something in it can be used as text on something else.

Harmony modes

  • Analogous: neighbouring hues (about 20-30° apart) for calm, cohesive schemes.
  • Complementary: a hue and its opposite for strong contrast; one usually leads and the other accents.
  • Monochromatic: one hue in several lightness steps; easy to keep consistent.
  • Triadic: three hues 120° apart for lively, balanced schemes.

To read more about each rule, see complementary colors, analogous colors and triadic colors.

Frequently asked questions

Is the color palette generator free?

Yes. It runs entirely in your browser, needs no account and has no limits. Nothing you generate is uploaded.

Can I keep a color and regenerate the rest?

Yes. Click the lock on a swatch. Locked colors never change, and harmony modes use the first locked color as the base hue.

How do I share a palette?

Use Copy share link. The link stores the colors in the address (for example ?c=6d46d3-f472b6-...), opens the same palette for anyone, and is not indexed by search engines.

Why does each color show "Aa" in black or white?

That label shows which text color reads better on the swatch and whether it passes the WCAG 2.x AA ratio of 4.5:1 for normal text. Use the contrast checker for exact numbers.

Related tools