Calcoid
Tech

RGB to CMYK Converter

Convert RGB to CMYK and back with live color preview, hex output, and WCAG contrast against white and black. Bidirectional and free.

RGB input
Result
HEX
#ff5733
RGB
rgb(255, 87, 51)
CMYK
cmyk(0%, 66%, 80%, 0%)

WCAG 2.1 contrast

vs white

3.15:1

Fail

vs black

6.66:1

AA

Frequently Asked Questions about the RGB to CMYK Converter

What is the formula for RGB to CMYK?
Normalize each RGB channel to 0-1 by dividing by 255. Then K = 1 - max(R', G', B'). If K = 1 the color is pure black and C, M, Y are all 0. Otherwise C = (1 - R' - K) / (1 - K), M = (1 - G' - K) / (1 - K), and Y = (1 - B' - K) / (1 - K). Multiply each by 100 to get the standard 0-100 percentage output.
How do I convert CMYK back to RGB?
Use R = 255 x (1 - C/100) x (1 - K/100), G = 255 x (1 - M/100) x (1 - K/100), and B = 255 x (1 - Y/100) x (1 - K/100). The result is rounded to whole 0-255 values. Round-tripping a value (RGB to CMYK and back) usually returns the same color, with at most a one-unit rounding drift on each channel.
Will my screen color print the same in CMYK?
Not exactly. This converter uses the standard uncalibrated formula, which is device-independent math and ignores ink, paper, and screen profiles. Real print shops use ICC color profiles (sRGB to a specific CMYK working space like SWOP or FOGRA39) so the saturated greens and blues your monitor shows fall within the printable gamut. Use this converter for quick estimates, then proof in your design tool with the correct profile before going to press.
Why is K (black) needed if CMY already covers the color space?
In theory, equal amounts of cyan, magenta, and yellow make black. In practice, mixing inks produces a muddy dark brown and wastes ink. Adding a dedicated black channel (K, the 'key' plate) gives sharper text, deeper blacks, and lower ink usage. K is derived as 1 minus the largest normalized RGB channel, which is the maximum amount of black you can pull out without changing the hue.
Why are my RGB and CMYK values rejected?
Each RGB channel must be a whole number from 0 to 255, and each CMYK channel must be 0 to 100. Negative numbers, values above the maximum, and non-numeric input (including blank fields or text) are rejected and the converter shows an error instead of a guessed result.