A printer asks for your brand color in CMYK, and your design file only has it in HEX. The two systems describe color in opposite ways: RGB mixes light on a screen, CMYK mixes ink on paper, so there is no matching swatch to look up. There is, however, a formula, and once you have seen it worked on real numbers it stops being mysterious.
This guide works the naive RGB to CMYK conversion end to end: the formula in plain terms, one brand blue converted step by step with every intermediate number shown, and four more colors (pure red, pure green, pure blue and a mid gray) computed the same way, each repeatable in the free Print Color Converter on Ovatly.
Contents
- Quick answer
- The formula, in plain terms
- How to convert a color, step by step
- Worked example: a brand blue, end to end
- Four more conversions: red, green, blue and gray
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
To convert RGB to CMYK with the naive formula: turn each channel into a fraction of 255, set K to 1 minus the largest fraction, then compute each ink as (1 minus its channel fraction minus K) divided by (1 minus K), expressed as a percentage. Worked in full below, #2563EB is rgb(37, 99, 235) and converts to CMYK 84.3, 57.9, 0, 7.8. The Print Color Converter performs the same calculation instantly and shows HEX, RGB, HSL and CMYK together. Every value the formula produces is a screen approximation and a first print estimate, not a printer profile.
The formula, in plain terms
RGB describes a color as three amounts of light, each from 0 to 255. CMYK describes it as four percentages of ink: cyan, magenta, yellow and black, where black is called K. The conversion is the textbook unprofiled formula, and it runs in a fixed order.
First, each RGB channel is divided by 255, so it becomes a fraction between 0 and 1. Then K is extracted: K equals 1 minus the largest of the three fractions. The brightest channel decides how much black the color carries, and that black is pulled out of the RGB channels before any colored ink is counted. A color with one channel at full strength (255) has a largest fraction of 1, so its K is 0.
Only then are the three inks computed. Cyan is (1 minus the red fraction minus K) divided by (1 minus K). Magenta uses the green fraction in the same shape, and yellow uses the blue fraction. Each result is multiplied by 100 and read as a percentage, stated to one decimal place. The division by (1 minus K) rescales the inks after the black is removed, so the four percentages still describe the original color.
How to convert a color, step by step
- Open the Print Color Converter and enter the color as a HEX value, or pick it with the swatch.
- Read the CMYK percentages in the results panel. The tool shows HEX, RGB, HSL and CMYK together, so you can sanity check the RGB values against your source before copying anything.
- Copy the four percentages in order: cyan, magenta, yellow, black.
- To convert in the other direction, type CMYK percentages into the tool instead and read the screen color they produce.
- Before anything goes to production, confirm critical brand colors with your printer's profile, because the converted values are an estimate.
Worked example: a brand blue, end to end
Take #2563EB, which is rgb(37, 99, 235) and hsl(221, 83%, 53%). As fractions of 255, its channels are red 0.145, green 0.388 and blue 0.922.
Step one is K. The largest fraction is blue at 0.922, so K is 1 minus 0.922, which is 0.078: 7.8% black. That single step is why this bright blue carries any black at all: the blue channel stops short of full strength, and the shortfall becomes the shared black component.
Step two is the inks, each divided by (1 minus K), which here is 0.922. Cyan: (1 minus 0.145 minus 0.078) divided by 0.922 comes to 0.843, so 84.3%. Magenta: (1 minus 0.388 minus 0.078) divided by 0.922 comes to 0.579, so 57.9%. Yellow: (1 minus 0.922 minus 0.078) divided by 0.922 is exactly 0, so 0%. Yellow is zero because blue is the strongest channel: after K is removed, nothing remains for yellow ink to do.
The finished conversion is CMYK 84.3, 57.9, 0, 7.8. The round trip also checks out: feeding those CMYK values back into the converter returns the same screen color within one unit per channel, which confirms the two directions agree.
Four more conversions: red, green, blue and gray
The same two steps, applied to four colors you can verify in seconds:
- Pure red, #FF0000, rgb(255, 0, 0). The largest fraction is 1, so K is 0 and the division changes nothing. Cyan is (1 minus 1) = 0, magenta is (1 minus 0) = 100, yellow is (1 minus 0) = 100. Result: 0, 100, 100, 0.
- Pure green, #00FF00, rgb(0, 255, 0). Again K is 0. Cyan is 100, magenta is 0, yellow is 100. Result: 100, 0, 100, 0.
- Pure blue, #0000FF, rgb(0, 0, 255). K is 0. Cyan is 100, magenta is 100, yellow is 0. Result: 100, 100, 0, 0.
- Mid gray, #808080, rgb(128, 128, 128). Every fraction is 0.502, so K is 1 minus 0.502, which is 0.498: 49.8%. Each ink numerator is 1 minus 0.502 minus 0.498, which is 0. Result: 0, 0, 0, 49.8.
Two patterns are worth noticing. Each saturated color splits into exactly two inks at full strength and carries no black, because a channel at 255 forces K to 0. The gray is the mirror image: balanced channels leave nothing for the colored inks, so black ink carries the entire color.
Limitations and honest tradeoffs
Every number in this guide comes from the naive conversion, and the tool labels its CMYK values as a screen approximation for a reason. The formula is the textbook unprofiled conversion: it assumes no ink limits, no dot gain and no paper color. A real press run has all three, and a printer's ICC profile accounts for them in ways this formula cannot.
The gap shows most with saturated colors. Bright screen blues and greens sit outside many CMYK gamuts, so a profiled conversion by the printer can look duller than this approximation suggests. Treat the percentages here as a first print estimate: right in structure, close in practice, and not a replacement for a printer ICC profile on work where the color has to match.
Common mistakes
- Sending naive values as final production values. They are a first estimate. For a brand color that must match, the printer's profile has the last word.
- Reading the four percentages in the wrong order. The order is always cyan, magenta, yellow, black. Swapping magenta and yellow turns the worked blue into a different color entirely.
- Expecting the printed result to match the screen. Screens emit light and paper reflects it, and saturated blues and greens may print duller than they glow.
- Skipping the round trip check. Typing your CMYK values back into the converter takes seconds and catches transcription errors before a print run does.
FAQs
What formula does RGB to CMYK conversion use? The naive conversion works in two steps. First, K is 1 minus the largest RGB channel expressed as a fraction of 255. Then each ink is (1 minus its channel fraction minus K), divided by (1 minus K), and the results are read as percentages.
Why does the blue #2563EB contain 7.8% black? Because K is pulled from all three channels before the inks are calculated. The brightest channel of #2563EB is blue at 235 of 255, which leaves 7.8% as the shared black component. What remains after that extraction becomes the cyan and magenta percentages.
Why does mid gray #808080 print with black ink only? All three of its channels are equal at 128, so once K takes 49.8%, nothing is left over for cyan, magenta or yellow. The naive formula prints any perfectly neutral gray with black ink alone: 0, 0, 0, 49.8.
Are these CMYK values ready to send to a printer? They are a first print estimate, not production values. The naive conversion is a screen approximation that assumes no ink limits, dot gain or paper color, and it is not a replacement for a printer ICC profile. Confirm critical brand colors with your printer's profile before production.
Can I convert CMYK back to a screen color? Yes. The Print Color Converter lets you type CMYK percentages directly and see the screen color they produce. Feeding the blue's values of 84.3, 57.9, 0 and 7.8 back in returns the same screen color within one unit per channel.
Conclusion
RGB to CMYK conversion is one formula applied in one order: extract K from the brightest channel, then split what remains into cyan, magenta and yellow. Worked on real numbers, it explains itself: saturated colors land on two inks and no black, balanced grays land on black alone, and a brand blue lands on 84.3, 57.9, 0, 7.8. For the finished values of the colors people ask about most, see our companion CMYK values for common colors reference table. For more guides in this series, see our Color and Design Tools guides.