Color palette generator

Choose a base color and a harmony, then press Space until you like what you see. Lock the colors you want to keep.

Runs in your browser. Nothing is uploaded.

Harmony

How to use it

  1. Set a base color with the swatch or by typing a HEX code.
  2. Choose a harmony. Each press of Generate or the Space bar varies the lightness and spacing.
  3. Press Lock on any color to keep it while the others change.
  4. Click a HEX code to copy it, or export the whole palette as CSS variables or a PNG image.

The harmonies

  • Analogous: neighbors on the color wheel, about 15–30° apart. Calm and safe.
  • Complementary: the base and its opposite, 180° away. Strong contrast; use the opposite color sparingly for buttons and highlights.
  • Triadic: three hues 120° apart. Lively, best with one color in charge and the others as accents.
  • Monochrome: one hue from very light to very dark. Good for backgrounds, borders and text in a single brand color.
  • Random: hues spread by the golden angle, so they rarely clash. The base color is not used.

Questions

How do I use the CSS export?
Paste it at the top of your stylesheet, then use color: var(--color-3) anywhere. Rename the variables to suit your project, such as --brand or --accent.
Does Space work while I am typing a HEX code?
No. Space types normally in text boxes. Click on an empty part of the page, or press Escape and Tab out, then Space generates again.
Are the palettes accessible?
Not automatically. Check text and background pairs in the color picker, which shows the WCAG contrast ratio against white and black.