HSB Coloring

Hi, Is there any api to use HSB colorizing instead of RGB and if there is not how could I convert RGB to HSB

http://www.alvyray.com/Papers/hsv2rgb.htm
If you have little data to convert, you can implement it CPU side, otherwise you can do it GPU side with a GLSL shader.

thanks, useful