CIE to LIFX Color Converter

Here’s some open-source code that converts standard CIE 1931 x,y colors to LIFX’s HSBK colors.

CIE to LIFX Color Converter

It’s easy to use, and the conversion uses real-word data measured with a colorimeter.

There’s a sample iOS project. Originally, I wrote it for an app which drives Philips and LIFX bulbs with a single color model.