01 / HEX and RGB
The same numbers
Hex is red, green and blue written in base 16: #7c52ff is 124, 82, 255. Two digits each, 00 to ff.
Free tool
Type or paste a colour in any form, like #7c52ff, rgb(124, 82, 255), hsl(), oklch(), a CSS name or CMYK, and see it in every format at once: HEX, RGB, HSL, HSV, HWB, OKLCH and CMYK, plus 0 to 1 values and ready code for Swift, Android and Flutter. Click to copy. Got a whole palette? Paste the list and convert it in one go.
Convert a list
Reads hex (3, 4, 6 or 8 digits, with or without #), rgb(), hsl(), hwb(), lab(), lch(), oklch(), CSS names like rebeccapurple, three numbers like 124 82 255, and cmyk(51, 68, 0, 0).
CMYK here is the plain formula. A print shop converts with its own colour profile, so printed colours can differ.
Colours are converted in your browser. Nothing is uploaded.
How it converts
01 / HEX and RGB
Hex is red, green and blue written in base 16: #7c52ff is 124, 82, 255. Two digits each, 00 to ff.
02 / OKLCH
Lightness, chroma and hue in a space that matches how we see, so changing the lightness keeps the hue steady.
03 / Code
Values for Swift, Android (0xAARRGGBB) and Flutter, and 0 to 1 floats for shaders and design tools.
Questions
Split the six digits into three pairs and read each pair as a number from 0 to 255: #ff8000 is ff = 255, 80 = 128, 00 = 0, so rgb(255, 128, 0). Or paste it above.
The last two digits are the alpha (opacity): #7c52ff80 is about 50 percent see-through. The converter shows it as rgba() too.
No converter can be without your printer's profile. This is the plain formula; ask the print shop for their conversion for critical colours.
A newer CSS colour form: lightness, chroma and hue. It is good for making shades of a colour, because the hue stays put as the lightness changes.
Yes. Paste them one per line under Convert a list and choose the format.