RGB To CMYK

Convert RGB color values to CMYK percentages for print workflows.








cmyk(12%, 0%, 14%, 62%)

#566254

Reverse Conversion

CMYK to RGB

How This Converter Works

Converts finite RGB channel values to rounded CMYK percentages and also emits a rounded RGB hex swatch.

Formula or rule

Normalize RGB to [0,1], K=1-max(R,G,B); if K=1 then C=M=Y=0, otherwise each ink=(1-channel-K)/(1-K). Round ink fractions×100. The swatch rounds each RGB input to an integer first.

Example

Input
RGB 255, 0, 0
Calculation
Normalized RGB=(1,0,0); K=0 and C=0, M=1, Y=1.
Result
cmyk(0%, 100%, 100%, 0%); #FF0000