hsl(212, 72%, 52%) and orange hsl(32, 90%, 55%), exactly 180° apart, is the simplest example. Harmony rules give a palette a predictable structure; contrast and value still decide whether it is readable.
Harmony Types at a Glance
All angles below refer to the HSL hue wheel, where red is 0°, green 120°, and blue 240°.
| Harmony Type | Hue Structure | Visual Effect | Common Uses |
|---|---|---|---|
| Complementary | Two hues 180° apart | Strongest hue contrast | Calls to action, sports branding |
| Analogous | Neighbors, about 30° apart | Cohesive, low tension | Backgrounds, calm UI, nature themes |
| Triadic | Three hues 120° apart | Lively but balanced | Playful products, illustration |
| Split-complementary | Base + the two hues 30° either side of its complement | Contrast with less tension | Editorial, marketing graphics |
| Tetradic (rectangle) | Two complementary pairs | Rich, hard to balance | Illustration, games, multi-category brands |
| Monochromatic | One hue, varied saturation and lightness | Unified, minimal | Dashboards, minimal UI, luxury |
Complementary: 180° Apart
Complementary colors sit directly opposite each other, so they differ as much in hue as two colors can. The pairing works best when one color dominates and the other is a small accent.
Complement = (Hue + 180) mod 360
Blue: #2C7FDD → hsl(212, 72%, 52%)
Orange: #F49325 → hsl(32, 90%, 55%) 212 + 180 = 392 → 32
A familiar UI pattern is an orange call-to-action button on a blue page: the button is the only warm element, so it is found immediately.
Practical notes:
- At equal saturation and similar lightness, complements “vibrate” along their shared edge. Mute one, or separate them with a neutral.
- Hue contrast is not text contrast. The orange above on the blue above is only about 1.7:1, too low for any text.
Analogous: Neighboring Hues
Analogous palettes use hues next to each other on the wheel, usually 20–40° apart, so the colors share an undertone and blend smoothly.
Teal: #29A38F → hsl(170, 60%, 40%)
Blue: #2597D0 → hsl(200, 70%, 48%) (+30°)
Indigo: #5469D4 → hsl(230, 60%, 58%) (+30°)
Analogous palettes are low in contrast by nature, so vary lightness deliberately: use the darkest member for text and the lightest for backgrounds.
Triadic: 120° Spacing
Triadic palettes use three evenly spaced hues. They are vivid but balanced, because no hue pair is as opposed as a complement.
Second = (Hue + 120) mod 360
Third = (Hue + 240) mod 360
Purple: #9739C6 → hsl(280, 55%, 50%)
Amber: #EEAD2B → hsl(40, 85%, 55%) 280 + 120 = 400 → 40
Green: #29A37A → hsl(160, 60%, 40%) 280 + 240 = 520 → 160
Let one hue lead and use the other two as accents; three equally loud colors compete.
Split-Complementary: Gentler Contrast
Split-complementary replaces the direct complement with the two hues 30° either side of it, keeping strong contrast with less tension.
Base: #5E47D1 → hsl(250, 60%, 55%) indigo
Complement would be 250 + 180 = 70°; split to 40° and 100°:
Split 1: #F4AF25 → hsl(40, 90%, 55%) amber
Split 2: #60AC39 → hsl(100, 50%, 45%) leaf green
Tetradic: Two Complementary Pairs
A rectangle tetradic palette combines two complementary pairs, here 60° apart.
Blue: #2273C3 → hsl(210, 70%, 45%)
Orange: #EE8C2B → hsl(30, 85%, 55%) complement of 210
Violet: #8C53C6 → hsl(270, 50%, 55%) 210 + 60
Green: #73AC39 → hsl(90, 50%, 45%) complement of 270
Four strong hues are hard to balance. Make one pair dominant and use the other in small amounts, or desaturate it.
Monochromatic: One Hue, Many Values
Monochromatic palettes keep a single hue and change only saturation and lightness.
Dark: #165A43 → hsl(160, 60%, 22%)
Base: #29A37A → hsl(160, 60%, 40%)
Light: #B3E6D4 → hsl(160, 50%, 80%)
Contrast comes entirely from lightness, which makes it easy to control. The dark and light values above differ by about 6:1, enough for text.
Real Brand Palettes
Spotify: Monochromatic + Neutrals
Green: #1ED760 → hsl(141, 76%, 48%)
Dark: #121212 → hsl(0, 0%, 7%)
White: #FFFFFF → hsl(0, 0%, 100%)
Spotify builds on a single hue. The green is reserved for play buttons and active states; everything else is near-black and white.
Stripe: Analogous (Cool)
Blurple: #635BFF → hsl(243, 100%, 68%)
Navy: #0A2540 → hsl(210, 73%, 15%)
Stripe’s core colors sit within about 35° of each other in the blue-violet range. The navy carries text and dark sections, and the blurple marks links and primary actions.
Brand values come from public listings of each company’s website colors, not official brand guidelines, and companies update them over time.
Common Mistakes
- Treating harmony as readability. A perfect complementary pair can still fail WCAG contrast; check every text pair against 4.5:1.
- Equal weight for every hue. Triadic and tetradic palettes look chaotic when each color covers the same area. A 60-30-10 split (dominant, secondary, accent) is a common starting point.
- Flat analogous palettes. Analogous hues at identical lightness blur together. Spread their lightness across at least 30 points.
- Mixing color wheels. The painter’s RYB wheel gives different complements (red ↔ green) from the HSL wheel (red ↔ cyan). Digital tools use HSL.
Using Harmony Rules
Pick the structure first, then adjust saturation and lightness until the palette has a clear dominant color, an accent, and readable text pairs. Every color page on swatch.ing lists its complementary, analogous, triadic, and other harmony colors; the palette library shows harmonies applied to real palettes. For the wheel itself, see primary, secondary, and tertiary colors.