Converters

CMYK → HEX converter

Convert CMYK to HEX the moment you type

Enter cyan, magenta, yellow and black percentages and get a CSS-ready hex code instantly — with RGB, HSL and a live swatch. The HEX field stays editable too, so you can jump between directions without losing your place.

  • No submit button — converts as you type
  • 100% client-side — nothing is uploaded
  • No account

Converter

CMYK to HEX, both ways

Start from the ink percentages, or flip over and type a HEX code. Everything stays in sync.

3 or 6 digits

Enter a 3 or 6 digit hexadecimal colour, with or without the leading hash.

RGB channels — 0 to 255

Dial in a channel directly, or let it follow the HEX.

CMYK inks — edit any value

Every field is live. Change an ink and the HEX updates instantly.

0%
0%
0%
0%
Recent
Nothing yet.
Colour wheel

Hue and saturation — drag the marker, or use the arrow keys (hold Shift for larger steps).

100%
#7C3AED
HEX
#7C3AED
CMYK
cmyk(48%, 76%, 0%, 7%)
RGB
rgb(124, 58, 237)
HSL
hsl(262, 83%, 58%)

Total ink coverage

131%

Within the ~300% most commercial presses accept.

CMYK here is the standard sRGB approximation — a faithful preview, not a press-calibrated match.

CMYK to HEX guide

CMYK to HEX converter: turn ink percentages into a web colour

This CMYK to HEX converter is built for the moment a print colour has to become a screen colour. The guide below explains the maths, walks through a real example, and shows why the result is a close approximation rather than a perfect match.

What a CMYK to HEX converter actually does

A CMYK value describes four inks: cyan, magenta, yellow and key black. A HEX value describes the red, green and blue light a screen emits. The two systems are not interchangeable, so a CMYK to HEX converter performs a translation rather than a simple lookup. It reads the four ink percentages, rebuilds the colour as RGB channels, and then writes those channels as a six-digit hexadecimal code. That code can be pasted into CSS, a design token file, an SVG fill, a charting library or a brand document. People search for a CMYK to HEX converter when a printer supplies ink values but the next task happens on screen: building a landing page, matching an email template, updating a logo sheet or turning a packaging proof into a digital mock-up. This tool keeps the process immediate. The CMYK fields are editable, the HEX output updates as you type, and the supporting RGB and HSL values stay visible so you can check the result from more than one angle.

How to convert CMYK to HEX code, step by step

To convert CMYK to HEX by hand, begin by writing each ink percentage as a decimal between zero and one. A value of 40% becomes 0.40, and 7% becomes 0.07. The black channel controls how much light is left, so the red channel is 255 × (1 − C) × (1 − K). The green channel uses magenta in place of cyan, and the blue channel uses yellow: 255 × (1 − M) × (1 − K) and 255 × (1 − Y) × (1 − K). Round each result to the nearest whole number, then convert those three numbers from decimal to hexadecimal. A channel value of 123 becomes 7B, 57 becomes 39, and 237 becomes ED. Join the three pairs in red-green-blue order and add the leading hash to get the CMYK to HEX code. The important detail is that every channel passes through the same black multiplier. That is why raising K makes all three screen channels darker at once, while raising C mainly reduces red. If you would rather skip the arithmetic, paste the ink values into the converter above and let it produce the CMYK to HEX code instantly.

A worked CMYK to HEX example

Take a violet specified as C 48% M 76% Y 0% K 7%. First convert the inks to decimals: 0.48, 0.76, 0 and 0.07. The red channel is 255 × (1 − 0.48) × (1 − 0.07), which works out to about 123.3, or 123. Green is 255 × (1 − 0.76) × (1 − 0.07), about 56.9, or 57. Blue is 255 × (1 − 0) × (1 − 0.07), about 237.2, or 237. Converting those channels gives 7B, 39 and ED, so the CMYK to HEX result is #7B39ED. You may notice that this is one red unit away from #7C3AED, the colour that produced those ink percentages in the first place. That tiny difference is normal: the original conversion rounded the CMYK values to whole percentages, and reversing rounded them again. It is a useful reminder that a CMYK to HEX code is a reconstruction from rounded ink numbers, not a recovered original. The live example in the converter makes the same point in a more practical way, because you can nudge any field and watch the HEX code move in response.

Why CMYK to HEX conversion is approximate

CMYK is a subtractive model: inks absorb light on paper. RGB and HEX are additive models: light is emitted by a screen. Their gamuts overlap, but they are not the same shape, so some printed colours cannot be shown accurately on a display and some screen colours cannot be printed with ink. On top of that, CMYK is not a single standard. A printer may use SWOP, GRACoL or FOGRA data, each with different ink behaviour and total-ink limits. Paper stock changes the result too: the same ink percentages look different on coated, uncoated and newsprint stocks. This is why two CMYK to HEX tools can return values that differ by a percentage point or two without either being broken. The result from this page is a careful sRGB approximation. It is excellent for previews, design handoff, CSS placeholders and digital documentation, but it is not a press contract. If a colour must match physically, treat the CMYK to HEX output as a starting point and ask the printer for a proof under the actual press conditions. The same caution applies to any collection of CMYK HEX codes copied from a brand guide: the codes are useful for screens, while the ink numbers remain the authority for print.

What makes this CMYK to HEX code converter different

Many converters ask you to submit a form and wait for a result. This CMYK to HEX code converter works as you type, so you can compare several ink mixes in the time it would normally take to load one page. The CMYK fields are not read-only: change C, M, Y or K and the HEX, RGB and HSL outputs follow immediately. The same panel also shows total ink coverage, which adds the four ink percentages together and flags a mix that may be too heavy for a commercial press. Every conversion runs in your browser, so your colour values are never uploaded, logged or attached to an account. You can copy the HEX code, the full CMYK string or all values at once, and the current colour is stored in the URL so a colleague can open exactly the same state. The colour wheel, native picker and screen eyedropper are there for visual exploration, while the numeric fields remain available when precision matters. If you need the reverse direction or a channel split, the HEX to CMYK and HEX to RGB converters are one click away.

FAQ

CMYK to HEX questions, answered

Quick answers about converting CMYK ink values to a HEX code for web and print projects.

How do I convert CMYK to HEX?

Convert each ink percentage to a decimal, then calculate red as 255 × (1 − C) × (1 − K), green as 255 × (1 − M) × (1 − K), and blue as 255 × (1 − Y) × (1 − K). Round the three channels, convert each to hexadecimal and join them in RGB order with a leading hash. This CMYK to HEX converter does all of that as you type.

Is a CMYK to HEX code exact?

No. CMYK describes ink on paper and HEX describes light on a screen, so the two colour spaces cannot match perfectly. The result also depends on the printer profile, paper stock and press conditions. Use the HEX code as a screen approximation, not as a replacement for a printed proof.

What are CMYK hex codes used for?

CMYK hex codes let a print colour travel into digital work: CSS variables, design tokens, SVG fills, email templates, charts and online mock-ups. They are convenient for keeping a project visually consistent, but the original ink values should remain the reference for printing.

Why does this CMYK to HEX code converter show a different value from another tool?

Different tools use different rounding, colour profiles or assumptions about the RGB working space. A small difference between two CMYK to HEX results is normal. The conversion here targets the sRGB approximation used by the converter, which is appropriate for screens and web design.

Can I convert the HEX code back to CMYK?

Yes. The HEX field in the converter stays editable, and the HEX to CMYK page gives the reverse workflow a dedicated home. Round-tripping can shift the values slightly because the CMYK side is rounded to whole percentages.