Color palette generator

Pick a base color and generate a color palette from it: complementary, analogous, triadic, tetradic or monochromatic, with HEX codes and CSS variables to copy.

  • Free
  • No sign-up
  • Runs in your browser
HEX, rgb() or hsl()

The base color and the color opposite it on the color wheel (+180°).

#4F33E8
rgb(79, 51, 232)
#CCE833
rgb(204, 232, 51)
all HEX codesCSS variables

Runs in your browser — nothing you enter is sent to our servers.

How to use Color Palette Generator

  1. Choose a base color with the picker, type a code, or press "Random base color".
  2. Select a color scheme: complementary, analogous, triadic, tetradic or monochromatic.
  3. Copy one HEX code, all the codes, or the set as CSS variables.

Features

  • Five harmony types, all built from the color wheel
  • Random base color button for quick inspiration
  • Shows HEX and RGB for every color in the palette
  • Copy a single code, all codes, or ready-made CSS custom properties
  • Runs in your browser with no upload

Examples

InputResult
Base #FF0000, complementary#FF0000, #00FFFF
Base #FF0000, triadic#FF0000, #00FF00, #0000FF
Base #FF0000, analogous#FF0080, #FF0000, #FF8000

Limitations

  • Palettes come from fixed hue rotations on the HSL wheel, so they are a starting point that follows color theory and not a finished brand palette. Check text and background pairs with a contrast checker before you use them. The monochromatic scheme shifts its lightness window at the very dark and very light ends.

Learn more

Color harmony is a set of relationships on the color wheel that tend to look balanced together. Designers use them as a shortcut: rather than guess which colors go with a brand blue, they rotate the hue by a fixed angle and keep the same saturation and lightness, so the colors feel like one family.

A complementary pair gives the strongest contrast. Analogous neighbors feel calm and cohesive. Triadic and tetradic sets add variety, and work better when one color dominates and the others accent. A monochromatic palette keeps the hue and changes only the lightness, which is the safest option for interfaces. Whatever you choose, test it in context: harmony says nothing about readability, so check text contrast and consider how the palette looks for people with color-vision deficiencies.

Frequently asked questions

What is a complementary color palette?

It pairs the base color with the color opposite it on the color wheel, 180 degrees away. Red and cyan are an example.

What is the difference between analogous and triadic?

Analogous uses neighbors 30 degrees either side of the base, which looks calm and unified. Triadic uses three colors 120 degrees apart, which is more varied and vivid.

What is a tetradic palette?

Four colors spaced 90 degrees apart on the wheel, a square. It offers plenty of variety, so it usually works well to let one color lead and use the others as accents.

How do I use the CSS variables?

Copy the variables block and paste it into your stylesheet. It already includes :root, so you can use the colors with var(--color-1) and so on. Rename them to fit your project.

Last reviewed: September 30, 2026