Published on
Before CSS Color 3, each syntactic form in CSS used the Red-Green-Blue color model directly.
It is often asserted [1] that color pickers using color models with orthogonal perceptual attributes (such as Lightness, Colorfulness, Chroma, Saturation, Hue) have higher usability than RGB; although the early studies have significant methodological flaws and more recent research finds that other factors such as interface design and responsive feedback are much more important in affecting the speed and accuracy of color selection than the color model.
While it seems intuitively reasonable, the usability benefit has yet to be demonstrated in a well-controlled study. The oft-cited study by Schwartz [2] was deeply flawed: the interface provided no user feedback on the effect of moving the featureless gray sliders, and there was no navigational hint as to the current position in the color model. Test subjects were essentially proceeding by guessing [3].
“With these interfaces we could not find a significant difference between the accuracy and speed of the RGB and HSV models, but did find that level of feedback had a significant effect on accuracy of the final match.” [4]
In addition, in the Schwartz study, closeness to the target color was measured by Euclidean distance in gamma-encoded RGB space, rather than by using an established color-difference metric such as CIE Delta-E.
Still, this assumed increase in usability was the reason that the hsl()
(Hue, Saturation, Lightness) model [5] was added in to CSS Color 3 in 2002 [1:1], followed later by the alpha-including hsla()
form.
This is why CSS Color 4 has some warnings about HSL
“A disadvantage of HSL over OkLCh is that hue manipulation changes the visual lightness, and that hues are not evenly spaced apart.” [6]
Geeknotes
The CSS Color 3 specification asserted
“The advantage of HSL over RGB is that it is far more intuitive: you can guess at the colors you want, and then tweak. It is also easier to create sets of matching colors (by keeping the hue the same and varying the lightness/darkness, and saturation)”.
However, no published Human Computer Interaction study has demonstrated this. ↩︎ ↩︎
Schwarz, M., Cowan, W. and Beatty, J. (1987) An experimental comparison of RGB, YIQ, LAB, HSV, and opponent color models. ACM Transactions on Graphics 6, 2 (April 1987) 123-158. abstract ↩︎
Douglas, S.A., and A.E. Kirkpatrick (1996). Do Color Models Really Make a Difference? Proceedings of the SIGCHI conference on Human Factors in Computing systems (April 1996) pp.399-405. download ↩︎
Douglas, S.A.; Kirkpatrick, T. (1996) The Effect of Feedback on a Color Selection Interface Proceedings of Graphics Interface '96: Toronto, Ontario, Canada, 22 - 24 May 1996, 47-54 doi: 10.20380/GI1996.06 download ↩︎
Joblove, G. H.; Greenberg, D. (1978). Color spaces for computer graphics. Computer Graphics. 12 (3): 20–25 (August 1978). doi:10.1145/965139.807362. download ↩︎
CSS Color 4, HSL Colors:
hsl()
andhsla()
functions ↩︎