How to Generate Color Palettes

A well-crafted color palette is the foundation of any design system. Whether you are building a brand, designing a UI, or creating illustrations, understanding color theory and palette generation will help you produce consistent, visually appealing results.

Color Theory Basics

Color theory is the art and science of using color. It explains how humans perceive color, how colors mix, contrast, and complement each other, and the visual effects of specific color combinations. At its core, color theory revolves around the color wheel — a circular diagram showing the relationships between primary, secondary, and tertiary colors.

  • Primary colors— Red, blue, and yellow (traditional) or red, green, and blue (additive).
  • Secondary colors— Created by mixing two primaries: orange, green, and violet.
  • Tertiary colors— Created by mixing a primary and a secondary (e.g., red-orange, blue-green).
  • Hue, saturation, brightness— Hue is the color itself. Saturation is the intensity. Brightness is how light or dark it is.

Color Harmony Schemes

Color harmony is the principle of arranging colors together to create a visually pleasing combination. These tried-and-true schemes are starting points for any palette:

  • ComplementaryTwo colors opposite each other on the color wheel. High contrast, high impact. Use one as the dominant and the other as an accent.
  • AnalogousThree colors next to each other on the wheel. Naturally harmonious and easy on the eyes. Great for backgrounds and calm interfaces.
  • TriadicThree colors equally spaced (120° apart). Offers vibrant contrast while maintaining balance. Works well for dashboards and data visualization.
  • Split-ComplementaryOne base color plus two colors adjacent to its complement. Less tension than complementary, more variety than analogous.
  • MonochromaticVariations in lightness and saturation of a single hue. Clean, cohesive, and impossible to get wrong.

Building a Palette Step by Step

  1. 1Pick a base color. Choose a hue that reflects your brand personality. A primary blue for trust, green for sustainability, orange for energy.
  2. 2Choose a harmony scheme.Apply one of the schemes above to derive 2–4 additional colors that relate to your base.
  3. 3Generate tints and shades.For each color, create lighter (tints) and darker (shades) variants. You will need 5–10 steps for a usable design system.
  4. 4Check contrast. Ensure text on your background colors meets WCAG AA (4.5:1 for normal text). Use a contrast checker to verify.
  5. 5Document and apply. Export your palette as CSS custom properties, Tailwind theme values, or a design token file. Consistent naming prevents drift.

Try It: Generate a Palette Online

Use ToolStack's Palette Generator to create harmonious color palettes from a single base color. Pick a scheme, adjust saturation, and export your colors instantly.

Open Palette Generator

Practical Tips

  • Limit your palette.A design system typically needs 1–2 primary colors, 1–2 accent colors, neutrals (grays), and semantic colors (success, warning, error).
  • Use the 60-30-10 rule. 60% dominant color, 30% secondary, 10% accent. This proportion creates visual balance.
  • Test in context. A palette that looks great as swatches may fail when applied to real UI. Mock up a few screens before committing.
  • Consider color blindness. About 8% of men and 0.5% of women have some form of color vision deficiency. Never rely on color alone to convey meaning.
  • Name your colors. Semantic names like color-primary and color-danger are more maintainable than hex values.

Related Tools