Skip to content

Palette generator

Pick one color and see which colors pair with it, with full shade scales and CSS variables for each.

Harmony

Neighbors on the color wheel: calm and cohesive.

Color wheel

The color wheel artists and most color tools use: blue sits opposite yellow.

--color-1 · base #e879f9

--color-2 · base #a879f9

--color-3 · base #f979ca

CSS variables

Show the CSS
:root {
  --color-1: #e879f9;
  --color-1-50: #fcebff;
  --color-1-100: #f4bffc;
  --color-1-200: #ee8bfe;
  --color-1-300: #d668e7;
  --color-1-400: #b84ac9;
  --color-1-500: #9b2bac;
  --color-1-600: #7b1589;
  --color-1-700: #590964;
  --color-1-800: #380440;
  --color-2: #a879f9;
  --color-2-50: #f3effe;
  --color-2-100: #dacbfe;
  --color-2-200: #c2a7fc;
  --color-2-300: #ac7efe;
  --color-2-400: #9262df;
  --color-2-500: #7846c1;
  --color-2-600: #5f28a4;
  --color-2-700: #46107f;
  --color-2-800: #2d0057;
  --color-3: #f979ca;
  --color-3-50: #ffecf6;
  --color-3-100: #febee3;
  --color-3-200: #fe8bd2;
  --color-3-300: #e668b8;
  --color-3-400: #c74b9d;
  --color-3-500: #a92e81;
  --color-3-600: #8b0467;
  --color-3-700: #65004a;
  --color-3-800: #41002e;
}

Color theory, briefly

Palettes that work together

Color harmonies are simple rules based on positions on the color wheel. They don't guarantee a beautiful result, but they give you a set of colors that belong together, which is most of the work:

  • Complementary: Opposite on the color wheel: strong contrast.
  • Analogous: Neighbors on the color wheel: calm and cohesive.
  • Triadic: Three hues evenly spaced: vibrant but balanced.
  • Split complementary: A hue and the two neighbors of its opposite.
  • Tetradic: Two complementary pairs: rich, needs a dominant color.
  • Monochromatic: One hue in different lightness: simple and elegant.

Color pairs at a glance

These are the pairs the generator gives on its default classic wheel. The complement is the strongest pairing, and the triad adds two more colors for a fuller palette. Each base color links to its own page, with shades, contrast and more matches.

Base colorPairs with (complementary)Triadic partners
Blue#0000FFyellow #FFFF00red #FF0000, lime #00FF00
Navy#000080olive #808000maroon #800000, green #008000
Teal#008080maroon #800000purple #800080, olive #808000
Coral#FF7F50#50D0FF#50FF7F, #7F50FF
Magenta#FF00FFlime #00FF00yellow #FFFF00, cyan #00FFFF
Light green#90EE90#EE90EE#9090EE, #EE9090

Grays such as dark gray have no complement: they pair with any color. Very light tints, such as alice blue or ghost white, pair best as backgrounds behind a stronger color. Their complements are near-whites too, so they add little as a second color.

From palette to design

A practical approach many designers use is the 60-30-10 rule: one dominant color for large areas (often a light shade or a neutral), a secondary color for about 30%, and an accent for the remaining 10%, such as buttons and links.

Use the shade scales for everything else: light shades for backgrounds and hover states, the middle for buttons and badges, dark shades for text. Always check text colors with the contrast checker; not every pretty shade is readable. Using the palette for a chart or status colors? Read designing for color blindness first: colors that differ only in hue can look the same to one man in twelve.

Classic or balanced?

Classic palettes turn the hue in HSL, the color wheel from art class and most color tools. It gives the pairs people expect: blue and yellow, teal and maroon, red and cyan. But HSL lightness isn't how bright a color looks: yellow at 50% lightness looks far brighter than blue at 50%, so a classic palette can mix glowing and heavy colors.

Balanced (OKLCH) palettes turn the hue in OKLCH, a color space built around how we actually see, and keep the lightness and intensity. Every color has the same visual weight, which makes calmer, more even palettes, though the hues sit in different places than on the classic wheel. The shade scales always use OKLCH, so each step looks evenly lighter or darker.

Frequently asked questions

How do I find colors that pair well together?

Start from the one color you are sure of, such as a brand or product color, and enter it as the base. Complementary pairs it with its opposite for strong contrast, analogous with its neighbors for a calm look, and triadic with two evenly spaced hues for a lively one. Then check any text color against its background with the contrast checker.

What color pairs with gray?

Almost any color. Grays have no hue, so they have no complement and never clash; choose Monochromatic for a range of tones, and add one vivid accent, which stands out more against gray than against white.

How are the palettes generated?

From your base color, ColorPeekr turns the hue around the color wheel according to the harmony you pick. By default it uses the classic color wheel (HSL) that artists and most color tools use, keeping saturation and lightness, so blue sits opposite yellow. Choose Balanced (OKLCH) to turn the hue in OKLCH instead: every color then looks equally bright, but the hues land in different places than on the classic wheel.

Why does the balanced palette give different colors?

HSL lightness doesn't match how bright a color looks: at the same lightness, yellow glows and blue looks dark. Balanced (OKLCH) keeps every color at the same visual lightness, so the opposite of a bright blue is a dark olive rather than a bright yellow. Use Classic for the textbook color wheel, and Balanced when you want calm, even palettes.

Which harmony should I use?

Analogous and monochromatic palettes feel calm and are the easiest to use well. Complementary gives the strongest contrast, good for a highlight color. Triadic and tetradic palettes are lively but work best with one dominant color and the others as accents.

What are the numbered shades for?

Each palette color comes with a scale from 50 (lightest) to 800 (darkest), like the scales in Tailwind CSS and other design systems. Light shades suit backgrounds, middle ones buttons and illustrations, dark ones text.

How do I use the CSS variables?

Copy the block into your stylesheet and use the colors with var(), for example color: var(--color-1-700). Rename the variables to something meaningful, like --brand or --accent, once you settle on a palette.

Can I build a palette around my brand color?

Yes: type or paste your brand color as the base. The first row is built from your exact color (its value is shown under the row), and the other colors are arranged around it.