Home › Image Tools › CMYK to HEX Converter

CMYK to HEX Converter

Got a color from a print brand guide or a printer's proof? Enter its CMYK percentages to get the HEX code for websites, CSS and design apps, plus RGB, HSL, a live swatch and matching shades.

Last updated:

%
%
%
%
Options
Enter your values to see the result.
Advertisement
Advertisement

How to use the CMYK to HEX Converter

  1. Enter the four ink values: cyan, magenta, yellow and black (K) as percentages from your brand guide or print file.
  2. Switch to fractions under Options if your values look like 0.5 instead of 50.
  3. Click Convert to HEX (results also update as you type) and read the HEX code in the swatch.
  4. Click Copy results to copy the HEX, RGB and HSL codes, or download the shades table as CSV.
  5. Try a preset such as Navy or Rich black to see how ink mixes map to screen colors.

How CMYK becomes a HEX code

A HEX code is RGB written in base 16, so the conversion has two stages. First, each ink percentage is turned into how much light is left over: cyan blocks red, magenta blocks green, yellow blocks blue, and black dims all three. Then each 0–255 channel is written as two hexadecimal digits (0–9 and A–F).

  • R = 255 × (1 − C) × (1 − K)
  • G = 255 × (1 − M) × (1 − K)
  • B = 255 × (1 − Y) × (1 − K)
  • HEX = # + two hex digits for R, G and B (e.g. 153 = 9 × 16 + 9 = 99)

Worked example: brick red C 0% M 75% Y 80% K 25%. R = 255 × 1 × 0.75 = 191.25 → 191 → BF; G = 255 × 0.25 × 0.75 = 47.8 → 48 → 30; B = 255 × 0.2 × 0.75 = 38.25 → 38 → 26. The HEX code is #BF3026.

CMYK to HEX reference chart

ColorC, M, Y, K (%)HEXRGB
Orange0, 50, 100, 0#FF8000255, 128, 0
Navy100, 80, 0, 40#001F990, 31, 153
Forest green56, 0, 26, 58#2F6B4F47, 107, 79
Brick red0, 75, 80, 25#BF3026191, 48, 38
Teal100, 0, 40, 20#00CC7A0, 204, 122
Warm gray0, 10, 20, 40#998A7A153, 138, 122
Sky blue50, 10, 0, 0#80E6FF128, 230, 255
Plum30, 80, 0, 35#7421A6116, 33, 166
Mustard0, 20, 90, 15#D9AD16217, 173, 22
Cream0, 5, 20, 0#FFF2CC255, 242, 204
Charcoal0, 0, 0, 80#33333351, 51, 51
Process cyan100, 0, 0, 0#00FFFF0, 255, 255
Process magenta0, 100, 0, 0#FF00FF255, 0, 255

Tips for matching print and web colors

  • Keep both values in your brand guide. List the CMYK mix for print and the HEX code for screens instead of converting back and forth each time.
  • Expect brighter screen colors. The formula assumes perfect inks. If the HEX version looks too vivid next to a printed sample, nudge it by eye or convert in a design app using your printer's ICC profile.
  • Blacks are special. Every mix with K 100% becomes #000000, so a rich black and a plain black look identical on screen even though they print differently.
  • Check text contrast. The result panel shows whether white or dark text reads better on your color, using the WCAG contrast ratio (4.5:1 or more is recommended for body text).

Converting the other way? Use HEX to CMYK, or CMYK to RGB for sliders and more color formats.

Frequently asked questions

How do I convert CMYK to HEX?

First convert CMYK to RGB: divide each percentage by 100, then R = 255 × (1 − C) × (1 − K), G = 255 × (1 − M) × (1 − K) and B = 255 × (1 − Y) × (1 − K). Round each to a whole number and write it as two hexadecimal digits. For example, C 0% M 50% Y 100% K 0% gives RGB 255, 128, 0, which is #FF8000.

What is the HEX code for 100% K black?

C 0% M 0% Y 0% K 100% converts to #000000. Rich black mixes such as C 60% M 40% Y 40% K 100% also convert to #000000, because 100% black already sets every RGB channel to zero in the standard formula.

Why does the HEX color look brighter than my print?

Screens emit light and can show more saturated colors than ink on paper. This tool uses the standard profile-free formula, so pure process cyan becomes #00FFFF. Design apps that convert through an ICC profile such as GRACoL or FOGRA39 show a duller cyan, closer to #00AEEF, which better predicts the printed result.

Will converting the HEX code back give the same CMYK values?

Not always. Many CMYK mixes produce the same HEX code, and the reverse conversion picks the version with the most black (for example #FF8000 returns C 0% M 50% Y 100% K 0%, but #000000 always returns K 100% only). Keep the original CMYK values for print and use the HEX code for screens.

Is the HEX code case sensitive?

No. #FF8000 and #ff8000 are the same color in CSS, HTML and design software. Choose uppercase or lowercase under Options to match your style guide.

What is a 3-digit HEX code?

When each pair of digits repeats, such as #FF8800, the code can be shortened to #F80. The tool shows the shorthand whenever your color allows it; otherwise use the full 6-digit code.

What does total ink coverage mean?

It is C + M + Y + K added together. Many printers cap it around 300% (often lower on uncoated paper) so the ink dries properly. It has no effect on the HEX result, but it is a handy check when you design colors for print.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

HEX to CMYKConvert HEX color codes to CMYK percentages for print, with a live preview.CMYK to RGBConvert CMYK percentages to RGB and HEX color codes with sliders and a live preview.RGB to HEXConvert RGB to HEX with sliders, live swatch and one-click copy.Pantone to HEXLook up approximate HEX, RGB and CMYK values for Pantone colors.Color Palette GeneratorGenerate beautiful color palettes and export them.HEX to RGBConvert HEX colors to RGB and other formats.HEX to HSLConvert HEX colors to HSL and back with interactive sliders.RGB to CMYK ConverterConvert RGB and HEX colors to CMYK for print, and back.Color Contrast CheckerCheck WCAG contrast ratios and find accessible text colors.Color Name FinderFind the closest color name for any HEX or RGB color.Color Blindness SimulatorSee any image as people with protanopia, deuteranopia, tritanopia or achromatopsia see itImage Color PickerPick any pixel colour from an image and get HEX, RGB, HSL plus a paletteColor Shades GeneratorTurn one HEX color into a 50-950 scale plus tints, shades and tones, ready to export.Tailwind Color GeneratorTurn one color into a full Tailwind 50–950 shade scale and export the config or CSS.Color MixerMix two colors in sRGB, linear, OKLab or OKLCH, or blend them with Photoshop-style modes.Random Color GeneratorGenerate random HEX colors one at a time or in batches, with hue, saturation and lightness ranges.Color WheelFind complementary, triadic, analogous and other color harmonies on an interactive wheel.Color PickerPick any color and get HEX, RGB, HSL, HSV and CMYK codes, shades and a screen eyedropper.HTML Color CodesAll 140 HTML color names with HEX and RGB codes, plus the 216 web-safe colors. Click to copy.Color Palette from ImageExtract the main colors of any photo as HEX codes, CSS variables and a palette PNG.Replace Color in ImageClick a color in a picture and swap it for a new color or transparency, keeping the shading.HSL to HEXConvert HSL and HSLA colors to HEX and RGB with sliders and a live preview.HEX to RGBAConvert HEX color codes to CSS rgba() with an opacity slider and one-click copy.RGBA to HEXConvert rgba() colors to 8-digit HEX, or flatten transparency onto any background.HEX to PantoneFind the 5 closest Pantone-style solid coated colors for any HEX or RGB, ranked by Delta E.Color Temperature to RGBConvert a color temperature in kelvin (1000-40000 K) to RGB and HEX with a live swatch.OKLCH Color ConverterConvert HEX, RGB and HSL to OKLCH, OKLab, Lab and LCH with sRGB and P3 gamut checks.RAL to HEXLook up RAL Classic codes as HEX, RGB and CMYK, search by name or find the nearest RAL.RGB to HSLConvert RGB values to HSL, HSV and HWB with a live swatch and copy-ready CSS.Color Code ConverterConvert a color between HEX, RGB, HSL, HSV, CMYK, LAB, LCH and OKLCH with a live swatch.Room Paint Color VisualizerUpload a room photo, select the walls and preview any paint color or HEX with real lighting.Photo to Pop ArtMake Warhol-style pop art from a photo: posterized color tiles in 1, 4 or 9 grids with custom palettes.Screen Color PickerPick any pixel color from anywhere on your screen and copy it as HEX, RGB or HSL.Solid Color Image GeneratorMake a plain single-color or transparent image in any size, like 1920x1080, as PNG or JPG.White Balance CorrectorFix color casts: click a neutral gray point or use auto gray world, then fine-tune temperature and tint.Photo Color MatchCopy the color grading of a reference photo onto your image (Reinhard color transfer).Underwater Photo Color CorrectionRestore lost reds and remove the blue or green cast from underwater photos by depth.
See all 38 Color Tools →