CMYK to Hex Color Converter

Enter cyan, magenta, yellow, and key/black percentages (0-100 each) and get the equivalent #RRGGBB hex color, using the standard CMYK-to-RGB formula, useful for bringing a print color spec back into a screen/web context. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

CMYK values are common in print-oriented brand specs and design software, but most web and app work needs a hex color instead, so converting between the two comes up whenever a print-first color spec needs to make its way onto a screen.

This tool applies the standard CMYK-to-RGB formula to turn cyan, magenta, yellow, and key (black) percentages into the corresponding #RRGGBB hex color, with a live swatch preview.

What Is CMYK to Hex Color Converter?

A CMYK-to-hex converter takes four percentages (each 0-100) representing how much cyan, magenta, yellow, and black ink would be used, and derives the equivalent red, green, and blue light values a screen would need to approximate that same color.

The result is hex-encoded as a standard 6-digit #RRGGBB color, ready to paste into CSS, a design tool, or any RGB-based context.

How CMYK to Hex Color Converter Works

With c, m, y, k normalized from percentages to 0-1: red = 255 * (1 - c) * (1 - k), green = 255 * (1 - m) * (1 - k), blue = 255 * (1 - y) * (1 - k).

Each resulting channel is rounded to the nearest integer (0-255) and hex-encoded as a 2-digit byte to build the final 6-character hex string.

When To Use CMYK to Hex Color Converter

Use this when a print-oriented brand guide, Pantone bridge chart, or design tool gives you CMYK values and you need a matching hex color for web/app work.

It's a reasonable starting point for screen preview purposes, but not a substitute for a real color-managed workflow when exact print/screen matching matters.

Features

Advantages

  • Applies the standard, widely documented CMYK-to-RGB formula consistently and instantly.
  • Validates each channel is within the expected 0-100 range before converting.
  • Shows a live swatch so you can see the resulting color immediately.

Limitations

  • This is a device-independent, non-color-managed formula; it doesn't model any specific printer, ink set, or paper.
  • Round-tripping through hex-to-CMYK and back can introduce small rounding differences due to percentage rounding at each step.

Examples

Pure cyan/magenta ink, no black

Input

c=0, m=100, y=100, k=0

Output

#FF0000

No cyan and no black means full red light; full magenta and yellow ink remove all green and blue, leaving pure red.

Full black ink, no color ink

Input

c=0, m=0, y=0, k=100

Output

#000000

k=100% forces every RGB channel to 255 * (channel factor) * (1 - 1) = 0, producing pure black regardless of c/m/y.

Best Practices & Notes

Best Practices

  • Treat results as a reasonable on-screen approximation of a print color spec, not a guaranteed visual match.
  • When you need real fidelity to a specific print process, use a proper ICC-profile-aware conversion tool instead of this formula.

Developer Notes

This implements the standard, widely used CMYK->RGB formula (255 * (1-channel) * (1-k) per channel); it's the direct algebraic inverse of the naive RGB->CMYK formula used by the companion Hex Color to CMYK Converter tool, so round-tripping the two (modulo rounding) recovers the original color.

CMYK to Hex Color Converter Use Cases

  • Converting a print-focused brand spec's CMYK swatches into hex colors for a web style guide
  • Previewing what a CMYK value from design software would look like as an on-screen color
  • Cross-checking a CMYK-to-hex conversion performed elsewhere

Common Mistakes

  • Entering percentages as 0-1 fractions instead of 0-100 whole percentages (this tool expects 0-100).
  • Assuming the resulting hex color will print identically to the original CMYK spec; screen and print are different color systems entirely.

Tips

  • Use the Hex Color to CMYK Converter tool to convert a resulting hex color back to CMYK as a sanity check.
  • Remember k=100% always produces black regardless of the other three channels, a quick way to spot a data-entry mistake in a CMYK spec.

References

Frequently Asked Questions