Color palette generator

Pick one base color and get a harmonious palette based on the color wheel: complementary, analogous, triadic, tetradic, monochromatic or split complementary. Free, and it runs in your browser.

How to use it

  1. Choose the Base color, or type its HEX in the optional field.
  2. Pick a Color harmony from the list.
  3. Click any swatch to copy its HEX, or copy the CSS variables for the whole palette.

Complete guide to color harmonies and palettes

What a color harmony is

Choosing colors one by one usually ends in a clash. Designers rely on the color wheel instead: colors that sit in certain positions relative to each other tend to look balanced together. A harmony is simply a rule for those positions. Starting from a single base color, this tool applies the rule and returns a ready palette with HEX codes, HSL values and CSS variables, which is a fast way to start a brand, a chart, a slide template or a website theme.

How the palette is calculated

The base color is converted to HSL (hue, saturation, lightness). The tool then rotates the hue around the wheel and keeps the same saturation and lightness, so every color in the palette has the same vividness as the base. Only the monochromatic scheme changes lightness instead of hue. You can pick the base with the Base color picker or type it in Base color (HEX, optional), which takes priority when filled in and accepts #abc or #aabbcc. Everything runs in your browser.

HarmonyColorsHue rotation from the baseCharacter
Complementary20 and 180 degreesStrong contrast
Analogous5-60, -30, 0, +30, +60Calm, cohesive
Triadic30, 120, 240Lively, balanced
Tetradic (square)40, 90, 180, 270Rich, needs a dominant color
Split complementary30, 150, 210Contrast with less tension
Monochromatic5Same hue, lightness -30, -15, 0, +15, +30Elegant, uniform

In the monochromatic palette the lightness is kept between 5% and 95%, so a very light or very dark base never collapses into pure white or black.

Worked example

  1. Enter #3b82f6, which is hsl(217, 91%, 60%), and choose Complementary. Rotating the hue by 180 degrees gives hue 37 and the second color #f6af3b, an orange. The table lists Color 1 (base) and Color 2.
  2. Choose Triadic. The hues become 217, 337 and 97, giving #3b82f6, #f63b82 and #82f63b.
  3. Choose Analogous. The five colors are #3bf6af, #3be0f6, #3b82f6, #523bf6 and #af3bf6, moving from green-teal through blue to violet. The base is always the third one.
  4. Choose Monochromatic. The lightness steps 30%, 45%, 60%, 75% and 90% give #073b91, #0a59da, #3b82f6, #84b1f9 and #cddffd, a ready scale from dark to light.

The CSS variables block lists the colors as --color-1, --color-2 and so on, in the same order as the swatches. Rename them to roles such as --brand or --accent in your code.

Tips and common mistakes

  • Do not use all colors in equal amounts. A common rule is about 60% a dominant color, 30% a secondary and 10% an accent.
  • Equal saturation and lightness make fully saturated palettes loud. Lower the saturation of your base for interface backgrounds and keep vivid colors for buttons and highlights.
  • Harmony says nothing about readability. Two colors that look good together can still fail as text on background, so test the pairs before using them.
  • A gray base has no hue, so rotating it changes nothing and the colors repeat. Choose a base with some saturation.
  • The HSL in the table is recalculated from the final HEX, so a value may differ by one step from the exact rotation because of rounding.

Related tools

Test text and background pairs with the contrast checker, convert any swatch with the color converter, or blend two or three of them with the gradient generator.

Questions

How are the palettes calculated?

The base color is converted to HSL, then the hue is rotated around the color wheel: 180 degrees for complementary, 120 for triadic, 90 for tetradic, 150 and 210 for split complementary, and 30 and 60 on each side for analogous.

What is the monochromatic palette?

It keeps the same hue and saturation and only changes the lightness, giving two darker and two lighter shades of the base color.

Which tetradic scheme is used?

The square one, with four colors spaced 90 degrees apart. It is balanced, but works best when one color dominates and the others accent.

Are these palettes accessible?

Harmony does not guarantee readable contrast. Check text and background pairs with a contrast checker before using them.