Converts red, green and blue values from 0 to 255 into a HEX colour code and its HSL equivalent. A HEX code writes each channel as two hexadecimal digits, as in #3B82F6.