About this tool
Convert between CMYK percentages and RGB or HEX colours in either direction, with a live swatch, all in your browser.
Enter cyan, magenta, yellow and black values from 0 to 100 and the HEX field and result tiles update at once. Type a HEX colour instead, with or without the leading #, in either 3-digit or 6-digit form, and the four CMYK fields are filled in for you. Values outside 0-100 are clamped, an empty CMYK field counts as 0, and a HEX value that is not valid is simply ignored until it is complete. The results appear as three tiles, HEX, RGB and CMYK, and clicking a tile copies its text.
The maths is the plain textbook formula with no colour profile: each RGB channel is 255 × (1 − ink) × (1 − K). Going from RGB to CMYK, pure black becomes 0, 0, 0, 100. The CMYK fields are rounded to whole percentages, so converting a colour back and forth can shift it by a point or so.
Nothing is uploaded; the conversion is done by the page itself.