Function Block COLOR2HUE

The Function Block COLOR2HUE converts an RGB color to a high-resolution HSV color.

Note: This Function Block is tuned for the Philips Hue System, therefore the output is limited to 254.

Input #RGB

Expects a color as a string in hex format '#RRGGBB'.

Output Hue

The output corresponds to the angle of the color circle. This is output as a number between 0 and 65'535.

Output Saturation

The output indicates the saturation of the color. If the value is 0, then the input color is white or at 254 the full color is output.

Output Value

The output indicates the value or brightness of the color. The value ranges between 0 and 254.

See Also