I am trying to let a user define the colour of parts of their character. I was thinking the best way to do this would be allow them to input the red, green and blue values for each piece. I would then add these values through an effect to each individual piece. However, the effect I found required me to input the Hue, Saturation and light values for the colour. How can I convert the red, green, blue input to HSL? I can't use an algorithm I've found online because of the way the event system works.