Function Block COLOR2XY

The Function Block COLOR2XY converts an RGB color into a high-resolution XY color space.

Note: This Function Block is tailored to the Philips Hue system, therefore the output DIM is limited to 254.

Input #RGB

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

Output XY

The output defines the position of the color. This is returned as a string with two concatenated positions as floating-point numbers between 0 and 1. The string is defined with a semicolon separator. For example: '0.3171;0.3366'.

Output DIM

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

See Also