Use Color Converters (RGB/HSB)
masterHue lights use internal color properties (Brightness, Saturation, Hue, X, Y). To work with standard color systems like RGB or HEX, install HueApi.ColorConverters and add the appropriate using directive. This adds extension methods to Light, State, and LightCommand.
Available converters:
HueApi.ColorConverters.Original: Based on a large XY array.HueApi.ColorConverters.HSB: Based on Hue, Brightness, and Saturation.
using HueApi.ColorConverters.RGBColor;
// or
using HueApi.ColorConverters.HSB;
// Example usage in a command:
var req = new UpdateLight().SetColor(new RGBColor("FF0000"));