A color code is a text notation for a screen color, such as #1E90FF in HEX or rgb(30, 144, 255) in RGB, that gives the amounts of red, green, and blue light in the sRGB color space.
HEX, RGB, HSL, and HSV describe the same sRGB colors in different ways. HEX and RGB give the three channel values. HSL and HSV give a hue angle with saturation and lightness or brightness. CMYK describes ink coverage on paper, so a screen color has no single exact CMYK value.