Sub topic 10
Triadic colours: three evenly spaced hues
This chapter assumes you can describe a colour by hue, saturation, and lightness, and that you have met the colour wheel, complementary pairs, and analogous neighbours. Here you will build triadic palettes, see why the result depends on the wheel you use, and learn the usual mistakes.
What a triadic harmony is
A triadic harmony is a set of three hues spaced 120 degrees apart on the colour wheel. If you draw an equilateral triangle inside the wheel, its three corners mark the palette.
Because the spacing is even, no hue sits next to another. That makes triadic palettes more varied than analogous ones. They are also usually less tense than complementary pairs, because no two of the three hues sit exactly opposite each other.
In an HSL colour (hue, saturation, lightness), the hue is an angle from 0 to 359. A triad built from a base hue h is:
hh + 120h + 240
Any of the three can be the base. The same triangle results either way.
Wheels change the triad
A triad depends on the wheel you measure it on. The traditional RYB wheel (red, yellow, blue) and the screen-based RGB wheel (red, green, blue) place colours at different angles, so the same 120-degree rule yields different colours.
- On the RYB wheel, the primaries are red, yellow, and blue. The triad of primaries is the classic one. Its secondary counterpart is orange, green, and violet.
- On the RGB wheel as HSL defines it, red is at 0, green at 120, and blue at 240. The primary triad is red, green, and blue.
- In HSL, yellow sits at 60 degrees. A triad that includes yellow, such as 60, 180, 300, gives yellow, cyan, and magenta. Those are the CMY primaries.
So "red, yellow, blue" is a triad only on the RYB wheel. In CSS, which uses HSL, a base hue of 0 gives red, green, and blue, not red, yellow, and blue.
| Wheel | Triad from red | Triad of secondaries |
|---|---|---|
| RYB (traditional) | Red, yellow, blue | Orange, green, violet |
| RGB/HSL (screens) | Red, green, blue | Yellow, cyan, magenta |
If you want a painter's triad on a screen, you can pick the three colours by eye from an RYB wheel. You can also use an RYB-based tool and then copy the resulting hex values into your design.
Building a triad in code
The JavaScript helper from earlier in this tutorial generates harmonies from hue offsets. A triad is the offset set [0, 120, 240]. The modulo step keeps every result between 0 and 359, even for negative or large angles.
function harmony(baseHue, offsets, saturation = 65, lightness = 50) {
return offsets.map((offset) => {
const hue = (((baseHue + offset) % 360) + 360) % 360;
return `hsl(${hue} ${saturation}% ${lightness}%)`;
});
}
const triadic = harmony(210, [0, 120, 240]);
console.log(triadic);
// [ 'hsl(210 65% 50%)', 'hsl(330 65% 50%)', 'hsl(90 65% 50%)' ]The same idea works directly in CSS with custom properties. Here calc() adds the offsets. CSS hue values are not wrapped by your arithmetic, but the browser treats 450 the same as 90, so no modulo is needed.
:root {
--base-hue: 210;
}
.triad-a {
background: hsl(var(--base-hue) 65% 50%);
}
.triad-b {
background: hsl(calc(var(--base-hue) + 120) 65% 50%);
}
.triad-c {
background: hsl(calc(var(--base-hue) + 240) 65% 50%);
}Changing --base-hue rotates the whole triangle. The three colours move together and stay 120 degrees apart.
Why a raw triad often looks wrong
The mathematics is exact, but human vision is not. Three problems appear again and again.
- All three hues compete. Three fully saturated hues at the same lightness give the palette no focal point. It looks like a toy or a children's poster.
- Equal lightness is not equal brightness. In HSL,
hsl(60 100% 50%)(yellow) looks far brighter thanhsl(240 100% 50%)(blue), even though both have lightness 50%. The eye is more sensitive to green and yellow light. - The wheel is not perceptually even. Equal angles in HSL do not give equal visual differences. A 120-degree step from blue to magenta-pink can feel smaller than a step from green to blue.
None of these is a reason to avoid triads. They are reasons to treat the raw triad as a starting point and adjust it.
Making a triad usable
Use the balance tools from earlier chapters on the triad.
Choose a dominant hue
Pick one hue to carry most of the design. The 60-30-10 guideline suggests about 60% dominant, 30% secondary, and 10% accent. In a triad, the dominant hue might be the background or large surfaces, the second the supporting areas, and the third the accent for buttons or highlights.
Vary saturation and lightness
Keep the hue angles fixed and change the other two attributes. For example, use a tint (hue plus white) or a muted tone of the dominant hue for large areas, and keep the full-strength colour for the accent. The hue relationship stays triadic, but the palette no longer shouts.
:root {
--base-hue: 210;
}
.page {
/* dominant: pale tint, about 60% of the area */
background: hsl(var(--base-hue) 40% 94%);
color: hsl(var(--base-hue) 40% 15%);
}
.panel {
/* secondary: muted tone, about 30% */
background: hsl(calc(var(--base-hue) + 120) 30% 40%);
color: white;
}
.button {
/* accent: full-strength colour, about 10% */
background: hsl(calc(var(--base-hue) + 240) 75% 38%);
color: white;
}Check contrast
A harmonious palette can still be unreadable. Text on the .panel and .button backgrounds above must meet the WCAG contrast ratios: at least 4.5:1 for normal text and 3:1 for large text. Measure the ratio with a contrast checker rather than judging by eye. Lowering the lightness of the background, as in the examples above, is the usual fix.
Hue alone should also never carry meaning. If the three triad colours mark three states, add an icon or a label, because some users cannot tell certain hue pairs apart.
Triadic compared with its neighbours
| Harmony | Hue offsets | Character | Main risk |
|---|---|---|---|
| Complementary | 0, 180 | High tension, strong accent | Vibrating edges, harsh pairing |
| Analogous | -30, 0, 30 | Calm, cohesive | Low contrast, little focus |
| Triadic | 0, 120, 240 | Varied, lively, balanced | Competing hues, childish look |
Triadic palettes sit between the other two. They give more variety than analogous schemes and are less stark than complementary ones, but they need more care in how much of each colour you use.
If a triad feels too busy, consider the related schemes described in an earlier chapter. A split-complementary scheme keeps one strong contrast with fewer competing hues, and a monochromatic scheme removes the hue conflict altogether.
Common errors
- Applying the 120-degree rule on the wrong wheel. If you plan in RYB and build in CSS, your colours will not match. Decide which wheel you are using before you calculate.
- Using all three at full saturation and equal area. Assign a dominant, a secondary, and an accent.
- Forgetting to wrap angles. In JavaScript,
330 + 120is 450, which is not a valid hue in many libraries. Use the modulo step. - Judging by hue only. Check lightness and contrast, not just the angles.
- Treating the triad as a rule. A designer may shift one hue by 10 to 15 degrees to fix a clash. The palette is then approximately triadic, and that is usually fine.
Summary of the method
- Choose the wheel (RYB for traditional work, HSL for CSS).
- Pick a base hue and add 120 and 240 degrees, wrapping at 360.
- Assign roles: dominant, secondary, accent.
- Adjust saturation and lightness per role.
- Check text contrast and avoid using hue as the only signal.
Exercise
A page uses the base hue 300 in CSS HSL. What are the other two hues of its triad, and which is the correct wrapped value for the second?
Show answer
Add 120 and 240. 300 + 120 = 420, which wraps to 60 (420 - 360). 300 + 240 = 540, which wraps to 180 (540 - 360). The triad is 300, 60, and 180: magenta, yellow, and cyan.
Exercise
A designer says "red, yellow, and blue is a triad, so in CSS I will use hues 0, 60, and 240." Is this a triad? Explain, and give the CSS triad that starts at red.
Show answer
No. The gaps are 60, 180, and 120 degrees, so the hues are not evenly spaced on the HSL wheel. Red, yellow, and blue form a triad only on the RYB wheel. The triad starting at red in CSS is hues 0, 120, and 240, which give red, green, and blue.
Exercise
You build a triad with all three colours at hsl(h 100% 50%) and use them in equal areas. List two problems this causes and one change for each.
Show answer
Problem 1: the three hues compete and there is no focal point. Change: make one hue dominant (about 60%), one secondary (about 30%), and one accent (about 10%). Problem 2: the colours differ in perceived brightness and may fail text contrast. Change: lower the saturation or lightness of the large areas and check the text contrast ratio against 4.5:1.