Implement the RGB to HSL constructor