Skip to main content

DigitalCalculators.net

Color Palette Generator

Last updated By the DigitalCalculators.net team Free, no sign-up

Pick a base color and a color harmony to get a matching palette of 5 colors, with HEX and RGB codes and CSS ready to copy.

CSS variables

      

Results

ColorHEXRGB
Palettes are built by rotating the hue of your base color on the color wheel in HSL, as described in the W3C CSS Color module, and adjusting lightness. Click a swatch to copy its HEX code. Always check text contrast before using colors for words.

Quick Answer

Pick a base color and a harmony, and the generator makes 5 matching colors. Analogous uses neighboring hues for a calm look, complementary pairs your color with its opposite for contrast, and triadic spaces three hues evenly around the wheel. Click any swatch to copy its HEX code, or copy all five as CSS variables.

Last updated: 15 November 2026 ·How we calculate this: how palettes are built

How This Color Palette Generator Works

A good palette starts from one color you like, such as a brand color. This generator places that color on the color wheel and picks four more using classic color harmonies. The result is a set of five colors that work together, ready for websites, slides, posters or rooms.

Harmonies:

  • Analogous: hues next to each other; calm and natural.
  • Complementary: opposite hues; strong contrast.
  • Split complementary: the two hues beside the opposite; contrast with less tension.
  • Triadic and square: 3 or 4 evenly spaced hues; lively.
  • Monochromatic: one hue in light and dark versions; clean and simple.

How to Use the Color Palette Generator

  1. Pick a base color with the color box.
  2. Choose a harmony.
  3. Press Generate, or change the base color to update.
  4. Click a swatch to copy its HEX code.
  5. Copy all colors as CSS variables if you need them.

How Palettes Are Built

  • HSL: the base color is turned into hue (0 to 360°), saturation and lightness.
  • Analogous: hue −40°, −20°, 0°, +20° and +40°.
  • Complementary: hue + 180°, with lighter and darker versions of the base.
  • Split complementary: hue + 150° and + 210°.
  • Triadic: hue + 120° and + 240°; square adds + 90°, + 180° and + 270°.

Key Terms

  • Hue: the color family, measured in degrees around the color wheel.
  • Color harmony: a rule for choosing colors that look good together.
  • Complementary colors: colors opposite each other on the wheel.
  • CSS variable: a named value, such as –color-1, used in stylesheets.

Worked Example

Base color #3B5BDB has a hue of about 228°.

  • Complementary hue: 228 + 180 = 408, which wraps to 48° (a golden yellow).
  • Triadic hues: 228 + 120 = 348° (a pink red) and 228 + 240 = 468, wrapping to 108° (a green).
  • Analogous hues: 188°, 208°, 228°, 248° and 268°, from teal blue to violet.

Real-Life Examples

  • Websites: turn one brand color into 5 colors for buttons, links and backgrounds.
  • Presentations: a triadic palette gives three clear chart colors.
  • Home decor: a monochromatic palette gives light to dark shades of one paint hue.
  • Logos: a complementary pair, such as blue at 228° and gold at 48°, stands out.

Analogous vs Complementary

  • Analogous: soft and harmonious; good for backgrounds and calm designs.
  • Complementary: high contrast; good for calls to action and highlights.
  • Mix: use analogous colors for most of a design and one complementary accent.

Harmony Angles

HarmonyHue steps from the base
Analogous−40°, −20°, +20°, +40°
Complementary+180°
Split complementary+150°, +210°
Triadic+120°, +240°
Square+90°, +180°, +270°

Tips for Using a Palette

  • 60-30-10 split: a common design habit is one main color, one secondary and one accent.
  • Check contrast: text needs strong contrast with its background; check it with the Color Picker.
  • Add neutrals: whites, greys and near-blacks balance bright palettes.
  • Test on real content: colors look different on large areas than on small swatches.

Common Mistakes to Avoid

  • Using all colors equally. Pick one main color and use the others as accents.
  • Ignoring contrast. Light text on light colors is hard to read.
  • Too many strong colors. Add neutrals to rest the eye.
  • Judging on one screen. Colors vary between devices.
  • Forgetting print. Screen colors may need adjusting for print.

Frequently Asked Questions

Pick a base color, choose a harmony and press Generate.

The color opposite yours on the color wheel, 180° away in hue.

Colors next to each other on the wheel, such as blue, blue-violet and violet.

Click its swatch to copy the HEX code.

Yes. Choose Random and press Generate for a new palette each time.

Yes. Copy the CSS variables block into your stylesheet.

No. Palettes are made in your browser.

Five, a common size for design palettes.

Analogous is the safest; complementary adds energy.

Yes. Type or pick your brand’s color as the base, and the other four colors are built around it.

A circle that arranges hues in order, from red through yellow, green, blue and purple back to red. Positions on the wheel are measured in degrees, which is how harmonies such as complementary (180° apart) are defined.

Very saturated base colors give very saturated palettes. Pick a slightly softer or darker base color, or use the palette’s colors as small accents next to plenty of white or grey.

Yes, as a starting point. Screens show RGB colors and printers use CMYK inks, so ask your printer to match the colors or convert them with the Color Picker first.

Choose Monochromatic or Analogous, then use the darkest colors for backgrounds and the lightest for text, checking the contrast between them.

References & Sources

SourceUsed ForLink
W3C, CSS Color Module Level 4: HSL colors Hue, saturation and lightness and how they convert to RGB. https://www.w3.org/TR/css-color-4/#the-hsl-notation
Wikipedia, Color scheme Analogous, complementary, triadic and other color harmonies. https://en.wikipedia.org/wiki/Color_scheme

Cite or share this calculator

DigitalCalculators.net. (2026, November 15). Color Palette Generator. https://digitalcalculators.net/color-palette-generator/