Color space conversions HSV/HSB<->RGB
Posted on 2004-04-17
I'm working on color picker control and need to be able to convert between color spaces. I'm trying to match what Adobe Photoshop does with their color picker. I've had no problem finding HSV to RGB function on the net, but they do not function the same as Photoshop's HSB values. The hue and the saturation seem the same, but Photoshop's "B" does not seem to correlate with the HSV's "V".
As an example, the following HSB values in the photoshop color picker produce a nice shade of aqua.
H -> 176 degrees
S -> 78%
B -> 100%
However, if I use those same values in the HSV to RGB functions I'm finding, I get pure white.