rgb+to+hsl

This page has some formulas for this this code is for converting from hsl to rgb http://www.w3.org/TR/css3-color/#hsl-color

This page also has some code in Java http://biginteger.blogspot.com/2012/01/convert-rgb-to-hsl-and-vice-versa-in.html

This page has some code for converting rgb to hsl http://www.geekymonkey.com/Programming/CSharp/RGB2HSL_HSL2RGB.htm