Alvy Ray Smith and Eric Ray Lyons. HWB - A more intuitive hue-based color model. Journal of Graphics Tools, 1(1):3-17, 1996


HWB - A more intuitive hue-based color model

Alvy Ray Smith
Microsoft
Redmond, Washington
alvys@microsoft.com

Eric Ray Lyons
Mill Valley, California
lyons@nbn.com


Abstract:
The two most common color selector models, other than RGB (Red-Green-Blue), are the hue-based HSV (Hue-Saturation-Value) and HSL (Hue-Saturation-Lightness) color models. It is shown that both of these models are flawed. A closely related model, HWB (Hue-Whiteness-Blackness), is introduced that avoids the flaws, is slightly faster to compute, and is very easy to teach to new users: Choose a hue. Lighten it with white. Darken it with black. We explain that lightening is not the opposite of darkening.

Source Code:
Downloadable C code that implements the color transforms described in the paper: HWB to RGB transforms, and the closely related HSV to RGB transforms.
Revision history:
31 Jan 1996 Initial version.
28 Mar 1997 HSV to RGB: Corrected bug in test if i is even
(see erratum below).
27 Oct 1997 HSV to RGB: deleted spurious line b = 1-v;


Errata:



Return to jgt home page