Hex to CMYK Converter
Hex to CMYK Converter. Enter your Hex Color and the Hex to CMYK Converter instantly converts it into CMYK Output. Try the binary to text converter when you need to decode binary output from a script or homework assignment back into readable words.
Got a brand color on screen and a print shop waiting for ink numbers? This Hex to CMYK converter turns any hex color code into CMYK values you can hand straight to a printer. Paste your code, click the Convert button, and read the cyan, magenta, yellow and black percentages: a free color converter that keeps the colors you see on a monitor close to the colors that land on paper.
How a Hex Color Code Stores RGB Light
A hex code such as #D1495B is a hex triplet: six hexadecimal digits grouped into three pairs. Each pair is one byte, so it runs from 00 to FF, which is the same as 0 to 255 in decimal. The first pair is red, the second is green and the third is blue, so a hex code is really an RGB recipe written in a compact form that HTML and CSS understand. In an HTML page it appears in a CSS rule such as color: #D1495B;, and the HTML source of almost any site is full of them. Enter a hex color into the hex to benjamin moore converter to see which Benjamin Moore shade in its reference list comes closest.
RGB is an additive system. A screen starts dark and adds light, so more of every channel moves a pixel toward white. That is why hex colors suit web design, app interfaces and any digital artwork shown on a monitor, and why they have no direct meaning for a press. The sRGB space most screens use also covers a different range of shades than ink does, which matters later in this guide.
Hex Code to CMYK: What the Four Inks Do
The CMYK color model describes printing rather than light. Cyan, magenta and yellow inks are laid down in tiny dots on paper, and a fourth plate, key, carries black ink. It is a subtractive color model: each layer of ink absorbs part of the light that would otherwise bounce back, so adding more makes the color darker. Enter your red, green, and blue values into the rgb to hex converter to get a hex code you can paste straight into CSS.
Why black gets its own plate
Mixing the three colored inks gives a muddy brown rather than a clean dark, and it wastes ink. A dedicated K channel produces crisp text, deeper shadows and neutral grays with stable gray balance. It is also the first number a conversion works out, because the darkest RGB channel decides how much black a color needs.
Percentages instead of bytes
Where hex uses bytes, CMYK uses percentages from 0 to 100 for each channel. A value of C 0, M 65.1, Y 56.5, K 18.0 reads as no cyan, a little under two thirds magenta, a bit over half yellow and a light touch of black.
Hex to CMYK Conversion Formula, Step by Step
Every hex to CMYK conversion follows the same arithmetic once the code is split into RGB. The steps below use the example #D1495B, a raspberry red, so you can check any result the converter gives you against the math. Use the hex to signed integer converter to check whether a raw hex value represents a negative or positive number at a given bit width.
Step 1: split the code into RGB values
Read each pair as a base-16 number and divide by 255 to get a fraction between 0 and 1:
$$R' = \frac{R}{255},\quad G' = \frac{G}{255},\quad B' = \frac{B}{255}$$
For #D1495B, D1 is 209, 49 is 73 and 5B is 91. Dividing each by 255 gives R' = 0.8196, G' = 0.2863 and B' = 0.3569.
Step 2: find the key (black) value
The key channel is what remains after the brightest channel is taken out:
$$K = 1 - \max(R', G', B')$$
Here the largest fraction is 0.8196, so K = 1 − 0.8196 = 0.1804, or 18.0%.
Step 3: calculate cyan, magenta and yellow
Each colored ink is its channel's complement with the black share removed, then rescaled:
$$C = \frac{1 - R' - K}{1 - K},\quad M = \frac{1 - G' - K}{1 - K},\quad Y = \frac{1 - B' - K}{1 - K}$$
| Channel | Working | Result |
|---|---|---|
| Cyan | (1 − 0.8196 − 0.1804) ÷ 0.8196 | 0.0% |
| Magenta | (1 − 0.2863 − 0.1804) ÷ 0.8196 | 65.1% |
| Yellow | (1 − 0.3569 − 0.1804) ÷ 0.8196 | 56.5% |
| Key (black) | 1 − 0.8196 | 18.0% |
So #D1495B becomes C 0, M 65.1, Y 56.5, K 18.0. If a color is pure black (#000000), K is 1 and the divisor reaches zero, so a safe converter simply returns 0, 0, 0, 100.
How to Use This Hex to CMYK Converter
You do not have to do the arithmetic yourself. This online tool runs the steps above in your browser:
- Paste or type your hex code, with or without the leading # sign. A color picker works too if you only have the shade on screen.
- Click the Convert button and the converter returns cyan, magenta, yellow and key as percentages.
- Copy the CMYK values into Adobe Illustrator, InDesign or CorelDRAW, or send them to your printer.
The same tool works in reverse. A CMYK to hex converter takes four percentages and gives back a web-ready code, which is handy when a print spec has to be matched on a website.
Common Hex Code Conversions in a Quick Reference Table
These conversions use the plain formula above, so they show the mathematical mapping, not print-ready numbers tuned for a particular press.
| Hex code | RGB | Cyan % | Magenta % | Yellow % | Key % |
|---|---|---|---|---|---|
| #D1495B | 209, 73, 91 | 0.0 | 65.1 | 56.5 | 18.0 |
| #0B6E4F | 11, 110, 79 | 90.0 | 0.0 | 28.2 | 56.9 |
| #EDAE49 | 237, 174, 73 | 0.0 | 26.6 | 69.2 | 7.1 |
| #00798C | 0, 121, 140 | 100.0 | 13.6 | 0.0 | 45.1 |
| #30638E | 48, 99, 142 | 66.2 | 30.3 | 0.0 | 44.3 |
| #7A3E9D | 122, 62, 157 | 22.3 | 60.5 | 0.0 | 38.4 |
Notice the pattern: whichever RGB channel is brightest always yields 0% of its matching ink. The warm red and gold rows carry no cyan, while the blue and teal rows carry no yellow.
Checking a Bakery Box Green with the Hex Code Color Converter
A bakery owner is ordering 2,000 takeaway boxes, and the brand guide lists only one number for the forest green: #1B4D3E. The printer's order form asks for CMYK, so the owner opens the converter and pastes the code.
The code splits into red 27, green 77 and blue 62. The brightest channel is green at 77 of 255, which is 0.3020, so black comes out at 1 − 0.3020 = 69.8%. The converter returns:
- Cyan: 64.9%
- Magenta: 0.0%
- Yellow: 19.5%
- Key (black): 69.8%
Adding those up gives a total ink coverage of 154.2%. That matters because standard coated sheetfed specifications such as SWOP cap total ink near 300%, so this green sits comfortably under the limit, with no risk of wet, slow-drying ink on the cartons.
The bigger question is the paper. The boxes are uncoated kraft, which soaks up ink and prints noticeably darker than the hex preview on screen. A coated-stock profile would not describe that surface, so the owner does not send the 64.9 / 0 / 19.5 / 69.8 recipe as final. Instead the order notes read: “Target CMYK 64.9, 0, 19.5, 69.8 on uncoated kraft — please run a press proof before the full job.”
Two days later the proof arrives visibly darker than the screen, so the owner reruns the converter with a lighter hex of #255F4C, which returns 61.1, 0.0, 20.0 and 62.7, and asks the printer to proof that recipe too. That adjustment, one input changed and one proof checked, settles the green before a single carton is wasted.
Why a Hex Color Code Shifts in Print
The same numbers rarely look identical on a screen and on a sheet. Three things cause the gap, and the first one is the most important.
Naive formula vs ICC profile
The formula above treats CMYK as a mathematical mirror of RGB. A real press does not behave that way, so print shops use an ICC profile, a data file that describes how a specific press, ink set and paper combine. Standards such as FOGRA39 and SWOP describe common offset setups for coated and uncoated stock. Running a conversion through the right ICC profile gives numbers tuned for that press instead of the generic ones.
Gamut limits
Bright greens, vivid oranges and electric blues sit outside the gamut of process inks, so the printed version looks flatter than the glowing original. Ink works with a narrower spectrum than a backlit display can produce, so faithful reproduction of those colors is not always possible.
Ink limits, dot gain and calibration
Presses cap the total amount of ink laid on paper, known as ink limits, and ink spreads as it dries, an effect called dot gain. Careful calibration of both your monitor and your proofing workflow narrows the difference, but a small shift between screen and press is normal.
Color Conversion for Web Design, Branding and Print Jobs
Accurate color conversion pays off anywhere one color has to live in two media:
- Brochures and posters: convert the palette once so every printed piece uses the same brand colors.
- Logo files: keep a CMYK version beside the hex version for letterheads, packaging and merchandise.
- Branding and marketing: consistency across a website, a trade-show banner and a flyer builds recognition.
- Designers and developers: designers hand over CMYK specs, while developers keep the hex values in HTML and CSS code.
- Printers: a clean CMYK value saves a back-and-forth about why a file looks wrong.
Skipping that step is the most common cause of disappointing printing results, whether the job runs on an offset press or as digital printing: a bold screen color can come back muted, overly dark or simply off, and the cost shows up as a reprint.
CMYK to Hex Converter and Related Color Models
A CMYK to hex conversion reverses the process, and the same idea applies to many other formats. Hex sits beside several color models, and each has its own job:
- Hex to RGB and RGB to hex: unpack a code into three decimal values, or pack them back.
- RGB to CMYK: the second half of the whole process, once the code is unpacked.
- Hex to HSL and HSL to hex: describe the same color by hue, saturation and lightness.
- RGB to HSL: the quick route for adjusting shades by hand.
- Hex to HSV and HSV to hex: hue, saturation and value, used by many pickers.
- RGB to HSV and HSV to RGB: the matching conversions in both directions.
Whichever route you take, the lesson is the same: pick the model that suits the medium, and convert only once, at the end.