ModernCalcs
Palette Options
5 colors • random mode
PaletteClick to copy HEX or lock colors
Palette JSON (for developers)
✓ Color Harmony

Random, analogous, complementary, monochromatic

✓ Lock Colors

Keep favorites when regenerating

✓ HEX & RGB

Copy individual colors instantly

✓ JSON Export

Export entire palette for code

Color Palette Generator: Build Harmonious Color Schemes with Color Theory

A color palette generator applies color theory rules to derive a balanced set of colors from a single base hue. Every harmony type — complementary, analogous, triadic, split-complementary, tetradic — is computed in HSL color space by applying degree offsets to the hue axis. Results render as HEX and RGB swatches you can copy into CSS custom properties, Figma color styles, or design system tokens. All calculations run client-side — no server, no uploads.

Formula
Complementary: H₂ = (H₁ + 180) mod 360 | Triadic: H₂ = (H₁ + 120) mod 360, H₃ = (H₁ + 240) mod 360 | Analogous: H₂ = H₁ ± 30

All hue offsets are applied modulo 360 to wrap around the color wheel. Saturation and Lightness from the base color are preserved across all harmony calculations.

How Color Harmony Rules Work

The color wheel is a 360° circle of hues. Harmony rules define where to place additional colors for visual balance. Complementary pairs (180°) create maximum contrast — the blue-orange combination seen in sports branding and movie marketing. Analogous schemes (±30°) cluster neighboring hues for a calm, unified feel. Triadic schemes distribute three colors evenly at 120° intervals for vibrant variety. The generator computes all of these in HSL, converts back to HEX, and displays copyable swatches.

Choosing the Right Harmony Type for Your Project

Analogous palettes suit nature brands, wellness apps, and editorial layouts where tranquility matters. Complementary schemes work for high-contrast UIs, e-commerce, and sports where visual tension drives attention. Triadic palettes suit bold consumer products and children's brands where energy is an asset. Tetradic schemes give four distinct color roles — ideal for complex design systems needing warm, cool, neutral, and accent tones.

From Palette to Design System

Generated hex values map directly to design tokens. In CSS, define each color as a custom property under :root. In Tailwind CSS, add them to theme.extend.colors. For semantic naming, use the dominant harmony color as primary, the lightest as background or surface, and the complementary color for interactive elements like buttons and links. The lock feature lets you anchor a fixed brand color while exploring accent options freely.

Use Cases by Harmony Type

  • Complementary — Call-to-action buttons, landing pages, sports and entertainment branding
  • Analogous — Nature brands, editorial layouts, wellness and health apps
  • Triadic — Bold consumer products, children's apps, portfolio sites
  • Split-Complementary — Versatile designs needing high contrast with softer results than pure complementary
  • Tetradic — Complex design systems requiring four distinct color roles

Frequently Asked Questions

What is color harmony, and why does it matter in design?

Color harmony refers to rules governing which colors look visually pleasing together. The five classic harmony types are: Complementary (180° hue offset), Analogous (adjacent hues ±30°), Triadic (120° intervals), Split-Complementary, and Tetradic (four equidistant hues). Harmonious palettes create visual order that makes designs feel professional rather than arbitrary.

How does complementary color harmony work?

Complementary colors sit exactly 180° apart on the HSL hue wheel — blue (240°) pairs with orange (60°), red (0°) pairs with cyan (180°). The formula is H₂ = (H₁ + 180) mod 360. Complementary pairings produce maximum contrast and are ideal for call-to-action buttons and focal highlights.

What is the difference between analogous and triadic color schemes?

Analogous schemes use adjacent hues (H ± 30°), producing a calm, cohesive palette common in nature-inspired designs. Triadic schemes place three colors evenly at 120° intervals: H₂ = (H₁ + 120) mod 360, H₃ = (H₁ + 240) mod 360. Triadic palettes are more vibrant and offer greater variety while maintaining balance.

How are palettes calculated in HSL color space?

HSL maps color to three axes: Hue (0–360°, color family), Saturation (0–100%, intensity), and Lightness (0–100%, brightness). Working in HSL makes harmony calculation precise — add degree offsets to the Hue while keeping S and L constant, then convert the resulting HSL values back to HEX for output.

How do I export a generated palette to CSS variables?

Copy the hex values and define them as CSS custom properties: :root { --color-primary: #3b82f6; --color-accent: #f6823b; }. Reference them via var(--color-primary) in your stylesheet. For Tailwind CSS, add the hex values under theme.extend.colors in tailwind.config.js.

What is the 60-30-10 rule in color design?

The 60-30-10 rule allocates visual space: the dominant color covers 60% (backgrounds, surfaces), the secondary covers 30% (headers, cards), and the accent covers 10% (buttons, links, highlights). This proportion creates visual hierarchy and prevents any single color from overwhelming the design.

What is a split-complementary color scheme?

Split-complementary uses a base color plus the two hues adjacent to its complement. If the base is blue (240°), the complement is orange (60°). Instead of pure orange, split-complementary uses yellow-orange (30°) and red-orange (90°). This gives high contrast with more flexibility than a direct complementary pair.

Why lock a color when generating palettes?

Locking a color pins its exact HEX value while the rest of the palette regenerates freely. This is essential when you have a fixed brand color — you keep the anchor and explore complementary or accent options around it without losing the starting point.