Converts RGB values to HSL values.
An object with r, g, and b properties.
An object with h, s, and l properties.
If the input is not a valid RGB object or if RGB values are out of range.
Converts RGB values to HSL values.