← All animations

🌈 Colour Models

A single colour is one point in a three-dimensional space — but there are several ways to give that point an address. RGB measures it by how much red, green and blue light a screen emits. HSL/HSV describes the same point by hue, saturation and lightness — the way a designer thinks. Hex is just RGB written in base-16. Move any control below and watch every other representation snap to the same colour.

1. One colour, three coordinate systems

The big swatch is the colour. The RGB sliders, the hue wheel, the saturation/lightness square (click or drag inside it) and the hex code are four different addresses for that one point. Change any of them and the others update in lockstep — proof they're the same colour seen through different coordinates.

199
139
255
rgb(199, 139, 255) hsl(270°, 100%, 77%) hsv(270°, 45%, 100%)

The wheel's angle is hue; distance from centre is saturation. The square below the readout reads as: across = saturation, up = lightness.

2. Why HSL is intuitive for design — the colour wheel

Because hue is an angle, colour relationships become geometry. A complementary colour sits straight across (180°); analogous colours are the close neighbours (±30°); a triadic set is an even triangle (120° apart). Rotate the base hue and watch the harmony markers swing around. Then dial saturation toward grey and lightness toward white — far more natural than guessing three R/G/B numbers.

Complementary · 2 colours, 180° apart

RGB and HSL both live inside the same sRGB gamut — the limited triangle of colours a screen can show. Perceptual spaces like CIE Lab and OKLCH go further: they space colours so that "equal numeric steps" look like equal visual steps, which HSL doesn't quite manage.

3. Same point, different language