RGB to CMYK Converter
Convert colours both ways between RGB and CMYK: choose the standard black-plate formula or a pure CMY profile, get cmyk() and CSS device-cmyk() output with configurable decimals, batch input and live preview.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Accepts rgb()/rgba(), percentage channels, HEX, and cmyk()/device-cmyk(); four bare numbers (0,100,100,0) are read as CMYK here.
Result
One result per line, ready for CSS or a print hand-off sheet.
Enter a colour to see the result
What this tool does
- Turn an on-screen RGB/HEX colour into CMYK percentages for a print hand-off.
- Check a value in reverse: convert cmyk() back to RGB/HEX to confirm the numbers match the intended colour.
- Switch to the pure CMY profile when the printer asked for values without a black plate.
Example
Input
rgb(51, 102, 153)
Output
cmyk(66.7%, 33.3%, 0%, 40%)
Uses the standard black-plate formula: K = 1 − max(R,G,B)/255 and C = (1 − R/255 − K) / (1 − K).
Frequently asked questions
What is the difference between the two CMYK profiles?
The black-plate profile pushes darkness into K, so #000000 becomes cmyk(0%, 0%, 0%, 100%). The pure CMY profile ignores K and computes C = 1 − R/255, so pure black becomes cmyk(100%, 100%, 100%, 0%). Confirm which one your printer expects.
Can I use this for real print separation?
No. This is a mathematical conversion with no ICC profile, no total ink limit and no spot-colour handling. Real separation depends on the press, ink and paper; treat this as a pre-flight estimate.
How do I write CMYK in CSS?
CSS Color 4 defines device-cmyk(). Both cmyk() and device-cmyk() forms are produced here, so pick the one your target environment supports.
Are the numbers rounded?
They keep 1 decimal by default and you can choose 0–3 decimals; rounding only affects the printed text.
Keywords:rgb2cmykrgb to cmykcmyk to rgbdevice-cmyk