Skip to content

CMYK to HEX Converter

Convert physical CMYK print ink percentages into digital HEX codes for websites, mobile apps, and screen presentations.

Source Format (From):
Target Output (To):
CMYK Input:0% to 100% per ink
C%
M%
Y%
K%
Click to Pick Color
TerracottaPantone 7608 C (Terracotta)
#E07A5F
HEX OutputHexadecimal Color Code
INSTANT RESULT
CSS Syntax
#E07A5F

All 7 Color Space Formats for #E07A5F

Click any format card to copy its full CSS value directly to your clipboard.

Instant Values
HEX
Hexadecimal Color CodeTarget
#E07A5F
RGB
Red, Green, Blue Color Model
rgb(224, 122, 95)
CMYK
Cyan, Magenta, Yellow, Key/Black
cmyk(0%, 46%, 58%, 12%)
HSL
Hue, Saturation, Lightness
hsl(13°, 68%, 63%)
HSV / HSB
Hue, Saturation, Value / Brightness
hsv(13°, 58%, 88%)
CIE-LAB
CIE L*a*b* Perceptual Space
lab(62.2 37.1 32.3)
OKLCH
Oklab Cylindrical (CSS Color 4)
oklch(82.9% 0.072 40.0)

Developer Code Snippets

Production-ready snippets formatted for web, mobile, and game engines.

Ready to Paste
CSS VariableWeb
color: #E07A5F;
Copy Snippet
CSS Display P3Wide Gamut
color(display-p3 0.878 0.478 0.373)
Copy Snippet
Tailwind CSSUtility
bg-[#E07A5F]
Copy Snippet
SwiftUIiOS / macOS
Color(hex: "E07A5F")
Copy Snippet
Flutter / DartCross-Platform
Color(0xFFE07A5F)
Copy Snippet
Unity C#Game Engine
new Color(0.878f, 0.478f, 0.373f, 1.0f);
Copy Snippet
Conversion Purpose & Workflow

Why Convert from CMYK to HEX?

Brand style guides frequently list print CMYK values for logos and packaging. When translating those assets to web design, digital advertising, or social media, developers need precise HEX equivalents that preserve the brand's intended appearance on screens.

The Mathematical Formula

How to Convert CMYK to HEX Step-by-Step

  1. 1 Step 1: Normalize CMYK percentages (0–100%) to 0.0–1.0 floats: c = C/100, m = M/100, y = Y/100, k = K/100.
  2. 2 Step 2: Calculate Red: R = 255 × (1 - c) × (1 - k).
  3. 3 Step 3: Calculate Green: G = 255 × (1 - m) × (1 - k).
  4. 4 Step 4: Calculate Blue: B = 255 × (1 - y) × (1 - k).
  5. 5 Step 5: Round RGB values to the nearest integer (0–255).
  6. 6 Step 6: Convert each RGB channel to a 2-digit uppercase hexadecimal string to produce #RRGGBB.

CMYK to HEX Frequently Asked Questions

Will converting CMYK to HEX look identical to printed paper?

It will look as close as physically possible on an sRGB display. Because screens are backlit and paper reflects ambient light, calibrated display brightness is recommended when matching proofs.

What if my printer gave me CMYK values that exceed 100% total?

That is normal! The sum of C + M + Y + K can be up to 300% or more (e.g., 'Rich Black' is typically C: 60%, M: 40%, Y: 40%, K: 100%). Each individual channel must simply be between 0% and 100%.

How do I use this HEX in Tailwind CSS?

You can copy the generated Tailwind class bg-[#HEX] with one click on this page or export full 50-900 tonal shades.