To demonstrate the correct conversion from HSB to RGB in case of hue lamps I will show you some code out of a little sample programm of mine. But to understand why i did this and how it works i want to give you a little bit of background information to this topic.
The hue lamp can display colors out of two colorsystems: HSB/HSV and CIE 1931 xyY, while xyY consists of two values from 0-1 with floating point that display a point on the color systems color palette. This color system is very hard to display in a canvas cause of the proportions of the xy values.
Continue reading C# HSB – RGB vv conversion