How is it calculated?
A HEX code is the hexadecimal form of the red, green and blue (RGB) values: #7B1F2E → 7B = 123, 1F = 31, 2E = 46. HSL describes the same colour by hue (0–360°), saturation and lightness. CMYK gives the ink proportions used in print.
Example
#7B1F2E = rgb(123, 31, 46).