also called hue path · chroma preservation · colour interpolation
How much colour a screen can hold changes with hue: the space bulges towards violet and pinches near cyan, so it is not a cylinder. That makes the route between two colours a gamut question rather than a matter of taste — and the default route, a straight line through the middle of the space, is the one that passes closest to grey. The strips under each field are the whole journey at once. Straight across is what CSS does unless asked otherwise: a transition, an animation or a gradient between two colours takes the straight line between them, and two opposite colours meet in grey on the way. Round the outside keeps the colour. How much it can keep depends on the hue: sRGB holds little chroma near cyan and a great deal towards violet, which is the arc’s own shape, and the meter shows it. On the plate as it survives, Chevreul’s blues and violets are barely stronger than grey; the fields give each of his hues all the chroma a screen can.
How it is built
.round { background: var(--round) } /* through every sector between, each as strong as sRGB holds */
.straight { background: color-mix(in oklab, var(--a), var(--b) calc(var(--t) * 100%)) } /* the straight line */
/* with no keyframes at all, color-mix(in oklch, var(--a), var(--b) …) also goes round: it interpolates the hue */In full, on GitHub index.html showcase.css
Plate — Premier cercle chromatique renfermant les couleurs franches, from Michel Eugène Chevreul’s Des couleurs et de leurs applications aux arts industriels à l’aide des cercles chromatiques (J.-B. Baillière et fils, Paris, 1864), engraved by René-Henri Digeon; Science History Institute; public domain, via Wikimedia Commons. The colours of its 72 sectors were measured from the scan. Facts — Michel Eugène Chevreul; Oklab.