How the color formats differ
HEX and RGB both describe the mix of red, green and blue that screens use; HEX simply writes it in hexadecimal. HSL (hue, saturation, lightness) is more intuitive for adjusting a color: move lightness to make it lighter or darker without changing the hue. CMYK is used for print.
The CMYK conversion here is a simple mathematical one. Print shops use different color profiles, so printed results can look slightly different from the screen.