HEX To CMYK

Convert six-digit HEX color values to CMYK percentages for print workflows. Results may vary by print color profile.




cmyk(0%, 100%, 100%, 0%)

#FF0000

Reverse Conversion

CMYK to HEX

How This Converter Works

Converts exactly six hexadecimal RGB digits, optionally prefixed with #, to rounded CMYK percentages.

Formula or rule

Parse RGB bytes and normalize by 255; K=1-max(R,G,B). If K=1 set C=M=Y=0, otherwise ink=(1-channel-K)/(1-K); round each fraction×100.

Example

Input
#FF0000
Calculation
RGB=(255,0,0) normalizes to (1,0,0); K=0 and inks are (0,1,1).
Result
cmyk(0%, 100%, 100%, 0%); #FF0000