ToolNimba

๐ŸŽจ CMYK to Hex Converter

Shihab Mia By Shihab Mia ยท Updated 2026-08-01

Live preview

Enter C, M, Y, K as percentages (0 to 100) and the hex code updates live.

This CMYK to hex converter turns cyan, magenta, yellow and key (black) percentages into an accurate #RRGGBB hex code, with a live swatch so you can see the color the moment you type. Enter each channel as a value from 0 to 100 and the tool does the CMYK to hex math instantly, no spreadsheet or lookup chart needed. It is built for the exact moment a print-department color needs to become a web-safe hex value for a website, app, or digital mockup.

What is the CMYK to Hex Converter?

CMYK is a subtractive color model built for printing. It describes a color as percentages of cyan, magenta, yellow and key ink laid down on white paper, where each ink absorbs certain wavelengths of light and the paper reflects the rest. Hex, by contrast, is an additive model built for screens: it describes a color as red, green and blue light values combined directly, written as a six-digit code like #2E86C1. Because the two systems describe color in physically different ways (ink absorption versus emitted light), a CMYK to hex converter has to bridge them with a formula rather than a simple lookup.

The standard CMYK to hex conversion first rebuilds the RGB values that the color would produce on a screen, then formats those values as hexadecimal. For each channel the formula is the same shape: start from full brightness (255), reduce it by the ink percentage for that channel, then reduce it again by the key percentage, since black ink darkens every channel equally. Red comes from cyan, green comes from magenta, and blue comes from yellow, each combined with key. Once you have red, green and blue as numbers from 0 to 255, converting to hex is just writing each one in base 16 and padding it to two digits.

One thing to understand before you rely on a CMYK to hex converter for production work: this is a device-independent approximation, not the exact ink your printer will lay down. Real printing presses, paper stock, ink formulations and color profiles (like US Web Coated SWOP or GRACoL) all shift the final printed color, sometimes noticeably. The formula used here, and by most free online tools, assumes an idealized CMYK space and gives you a very close, usable hex equivalent for on-screen mockups, brand guideline documents, and getting a design system's colors roughly aligned across print and web. For color-critical print jobs, always confirm against a physical proof or your print vendor's ICC profile rather than trusting a converted hex code alone.

Designers reach for a CMYK to hex converter constantly during rebrands, when a print-first brand (a logo built in Adobe Illustrator with CMYK swatches, say) needs a web-ready style guide. Rather than eyeballing a match in an image editor, running the CMYK to hex conversion through a formula-based tool keeps every teammate working from the same reproducible number, and it takes a fraction of a second per color.

When to use it

  • Converting a brand's CMYK swatches from a print style guide into hex codes for the company website and app.
  • Turning a designer's Illustrator or InDesign CMYK palette into CSS-ready hex values for a front-end developer.
  • Checking how a print color will approximately look on screen before committing to a full color-managed proof.
  • Documenting a unified brand palette that lists both the CMYK values for print vendors and the hex values for digital teams.

How to use the CMYK to Hex Converter

  1. Enter Cyan, Magenta, Yellow and Key (black) as percentages from 0 to 100.
  2. Watch the swatch and the hex code update live as you type each value.
  3. Read the equivalent RGB values alongside the hex code if you need them too.
  4. Click "Copy hex" to grab the #RRGGBB code for use in CSS, design tools, or documentation.

Formula & method

R = 255 x (1 - C/100) x (1 - K/100); G = 255 x (1 - M/100) x (1 - K/100); B = 255 x (1 - Y/100) x (1 - K/100). Round each result to the nearest whole number, clamp it between 0 and 255, then write each channel as a two-digit hexadecimal pair to form #RRGGBB.

Worked examples

Convert a CMYK value of C=73, M=27, Y=0, K=21 to hex.

  1. R = 255 x (1 - 0.73) x (1 - 0.21) = 255 x 0.27 x 0.79 = 54.4 which rounds to 54
  2. G = 255 x (1 - 0.27) x (1 - 0.21) = 255 x 0.73 x 0.79 = 147.1 which rounds to 147
  3. B = 255 x (1 - 0) x (1 - 0.21) = 255 x 1 x 0.79 = 201.45 which rounds to 201
  4. 54 in hex is 36, 147 in hex is 93, 201 in hex is C9
  5. Join the pairs to get the final code

Result: #3693C9 (approximately a mid-tone blue)

Convert a rich black of C=0, M=0, Y=0, K=100 to hex.

  1. R = 255 x (1 - 0) x (1 - 1) = 255 x 1 x 0 = 0
  2. G = 255 x (1 - 0) x (1 - 1) = 0
  3. B = 255 x (1 - 0) x (1 - 1) = 0
  4. Every channel rounds to 0, so every byte is 00

Result: #000000 (pure black)

Common CMYK values and their converted hex codes

CMYKHex
0000#FFFFFF
000100#000000
100000#00FFFF
010000#FF00FF
001000#FFFF00
10000100#000000
75686790#060808

Why CMYK to hex is an approximation, not an exact match

FactorEffect on the final printed or displayed color
Paper stockCoated vs uncoated paper absorbs ink differently, shifting the visible color.
Ink formulationDifferent printers and ink brands produce slightly different cyan, magenta and yellow hues.
Color profile (ICC)Profiles like SWOP or GRACoL adjust how CMYK maps to real-world color, which a plain formula ignores.
Monitor calibrationThe hex result depends on your screen rendering RGB consistently, which varies device to device.

Common mistakes to avoid

  • Entering CMYK as decimals instead of percentages. The formula expects each channel from 0 to 100, not 0 to 1. Typing 0.73 instead of 73 for cyan will produce a hex code that is almost pure white, since the math treats it as barely any ink at all.
  • Expecting the hex to match a physical printed swatch exactly. A CMYK to hex converter uses an idealized formula. Real ink, paper, and press conditions shift the actual printed color, sometimes significantly, so treat the result as a close on-screen approximation, not a color-matching guarantee.
  • Forgetting that key (K) darkens every channel. K is not just "add black," it multiplies down red, green and blue together. A high K value with low C, M and Y still produces a dark, muted color rather than a bright one, which surprises people expecting the CMY values alone to control brightness.
  • Mixing up rich black with a true CMYK of 0,0,0,100. Print designers often use "rich black" (something like C=60 M=40 Y=40 K=100) for deeper coverage on paper, which converts to a slightly different, warmer hex than the pure #000000 you get from K=100 alone.

Glossary

CMYK
A subtractive color model used in printing, made of cyan, magenta, yellow and key (black) ink percentages from 0 to 100.
Hex code
A six-digit hexadecimal string (#RRGGBB) that represents a color as red, green and blue light values for screens.
Key (K)
The black channel in CMYK. It darkens every other channel proportionally rather than adding a separate color.
Subtractive color
A color model, like CMYK, where colors are created by inks absorbing (subtracting) wavelengths of light from white paper.
Additive color
A color model, like RGB, where colors are created by combining (adding) red, green and blue light directly on a screen.
ICC profile
A file that describes how a specific device or printer reproduces color, used to get more accurate print results than a generic formula.

Frequently asked questions

How do I convert CMYK to hex?

Convert each CMYK channel to an RGB value with R = 255 x (1-C/100) x (1-K/100), and the same pattern for G using M and B using Y. Round each to the nearest whole number and write it as a two-digit hex pair to get #RRGGBB.

Is CMYK to hex conversion always exact?

No. The formula gives a close, device-independent approximation. The actual printed color depends on paper, ink, and your printer's color profile, so treat the converted hex as a reliable on-screen reference rather than a guaranteed print match.

Why does K=100 with C=0, M=0, Y=0 give pure black?

Because R, G and B each get multiplied by (1 - K/100). At K=100 that factor is zero, so every channel becomes 0 regardless of the other values, producing #000000.

Can I convert hex back to CMYK with this tool?

This tool converts CMYK to hex specifically. To go the other direction, first convert hex to RGB, then apply the standard RGB to CMYK formula, which ToolNimba also offers as a separate converter.

What is the difference between CMYK and hex?

CMYK describes ink percentages used in printing (subtractive color on paper), while hex describes red, green and blue light values used on screens (additive color). A CMYK to hex converter bridges the two by computing the RGB equivalent first.

Why do my CMYK and hex colors look slightly different on screen versus print?

Screens display additive RGB light while printers lay down subtractive CMYK ink, and factors like paper stock, ink formulation and monitor calibration all shift the final appearance, so a small visual gap between print and screen is normal and expected.