Setting hue colors with hex

Can you take a look at my thread here about changing colors of my lights. I have no idea what I am doing wrong but I always get the same color light whereas I am attempting to generate a random color.