Sub topic 5
Warm and cool colours
This chapter assumes you can read hue, saturation and lightness values, and that you know the colour wheel layout from the earlier chapters. Here you will learn how the wheel divides into warm and cool halves, and where that division stops being reliable.
Temperature as a property of hue
Colour temperature describes how a hue feels. Reds, oranges and yellows suggest fire and sunlight, so they are warm. Blues, blue-greens and violets suggest water and shade, so they are cool.
Temperature belongs to hue, so it follows position on the wheel. Cutting the wheel with a line from yellow-green to red-violet gives a warm half and a cool half.
The boundaries are approximate. Different designers draw the line a few degrees apart, and that is acceptable.
Ambiguous hues and relative temperature
Green and violet sit at the boundary. A yellow-leaning green looks warm next to blue. A blue-leaning green looks cool next to yellow. Violet works the same way: it leans warm beside blue and cool beside red.
Temperature is also relative. Compare two blues, one leaning toward cyan and one toward violet. Side by side, the violet-leaning blue looks warmer, even though both are cool in the abstract. Judge temperature by comparing colours inside your palette, not by naming each one.
What temperature does in a design
- Warm colours tend to advance. They seem closer and draw the eye first.
- Cool colours tend to recede. They seem farther away and calmer.
- Warm palettes feel energetic or inviting. Cool palettes feel quiet, clean or serious.
A common pattern uses a cool background and a small warm accent. The accent stands out because it is the only warm element.
Classifying temperature in code
You can approximate this with a hue check. The function below wraps the angle first, so negative values and values above 359 still work.
function temperature(hue) {
const h = ((hue % 360) + 360) % 360;
if (h < 70 || h >= 330) return "warm";
if (h >= 150 && h < 270) return "cool";
return "ambiguous";
}
console.log(temperature(20)); // warm
console.log(temperature(210)); // cool
console.log(temperature(100)); // ambiguous
console.log(temperature(-30)); // warmIt returns "ambiguous" for yellow-green to green and for violet to magenta. A fixed rule cannot settle those ranges, so the function leaves the decision to the designer.
Common errors
- Treating the split as exact. The warm and cool halves have soft edges. Plan for ambiguous hues instead of forcing them into a group.
- Ignoring saturation and lightness. A very pale or very grey colour has little temperature. A desaturated orange can look neutral beside a vivid blue.
- Assuming a complement is always the opposite temperature. On the RYB wheel, orange and blue are opposites in temperature. Blue-green and red-orange also split cleanly. Near the boundary, though, a pair can fall on the same side or both be ambiguous.
- Mixing temperatures without a reason. A palette with equal warm and cool areas often feels unsettled. Choose a dominant temperature and use the other for emphasis.
Exercise
A page uses hsl(215 60% 40%) for the background and hsl(25 85% 55%) for a button. Using the ranges in this chapter, name the temperature of each colour and say which one will draw the eye first.
Show answer
Hue 215 falls in 150 to 270, so the background is cool. Hue 25 falls in 330 to 70, so the button is warm. The warm button advances and draws the eye first, and the cool background recedes. The button is also small and saturated, which strengthens the effect.