fixed color calculation for lifx plugin