Bytelify

CMYK to Hex Converter: CMYK to Hex Code

Convert C, M, Y, K values to a hex color code, live as you type.

Runs in your browser, nothing sent
cmyk-to-hex
#4287f5

Updates live as you type. This is a device-independent approximation — a real print CMYK value's on-screen appearance depends on the printer/paper's own ICC color profile, so treat this as a preview, not exact color matching. Runs entirely in your browser.

Need the opposite? Hex to CMYK Converter: Hex Color Code to CMYK

What is CMYK to Hex Converter: CMYK to Hex Code?

This CMYK to hex converter turns a CMYK (Cyan, Magenta, Yellow, Key/black) print color into a hex code, with a live color swatch. Use it to change C, M, Y, K values into a hex color code when a brand guideline or print spec only lists CMYK values and you need the same color as a hex code for CSS, a design tool, or a web mockup. This uses the standard device-independent formula for converting subtractive (print) color to a screen-representable hex value. It's a close visual approximation, not an exact color match. Real print output depends on your printer and paper's own ICC color profile, which this conversion has no way to account for. Everything runs entirely in your browser; nothing you enter is sent to a server.

CMYK to Hex Reference Table

CMYKHex
0, 0, 0, 100#000000
0, 0, 0, 0#FFFFFF
0, 100, 100, 0#FF0000
100, 0, 100, 50#008000
100, 100, 0, 0#0000FF
100, 0, 0, 0#00FFFF
0, 100, 0, 0#FF00FF
0, 0, 100, 0#FFFF00

How to Use the CMYK to Hex Converter

  1. 1

    Enter C, M, Y, and K: Type percentages from 0 to 100 for each channel.

  2. 2

    Read the Hex Result Instantly: The hex code and a live swatch appear automatically.

  3. 3

    Copy the Result: Use the copy button to copy the hex code for CSS or a mockup.

CMYK to Hex Conversion Formula

CMYK to hex goes through RGB first: R = 255 × (1−C) × (1−K), G = 255 × (1−M) × (1−K), B = 255 × (1−Y) × (1−K), with C, M, Y, K as 0–1 fractions of the entered percentages. Each resulting R/G/B value (0–255) is then encoded as a two-digit base-16 number and joined into the hex string. This is the same subtractive-color math used by CMYK to RGB Converter. Hex is just RGB written in another base, so converting CMYK to hex and CMYK to RGB always agree with each other.

How to Convert CMYK to Hex

Worked example: pure print red, C=0 M=100 Y=100 K=0. R = 255 × (1−0) × (1−0) = 255 G = 255 × (1−1) × (1−0) = 0 B = 255 × (1−1) × (1−0) = 0 RGB(255, 0, 0) encodes as hex #FF0000.

FAQs

Frequently Asked Questions

Common questions about CMYK to Hex Converter: CMYK to Hex Code.

No. Real print output depends on your printer and paper's own ICC color profile. Treat this as a preview/estimate, not exact print color matching.

Percentages from 0 to 100 for cyan, magenta, yellow, and key (black), the standard format used by most design and print software.

Use the paired Hex to CMYK Converter for the reverse direction.

Yes, Bytelify's CMYK to Hex Converter is free with no account or sign-up required.

No. The conversion runs entirely client-side in your browser, so nothing you enter is sent anywhere.

Enter the C, M, Y, and K percentages, each from 0 to 100. The hex code appears straight away, and you can copy it with one click.