Hex to CMYK Color Converter
Quickly convert a hex color to CMYK online.
What is a HEX color?
Hex colors are a way to create colors on websites and digital images. They are codes with six characters, starting with a ‘#’, made of numbers and letters. Each hex color code tells your computer or phone the exact color to show. This makes it easy to pick and use colors online, from bright reds to deep blues. It’s like having a huge box of digital crayons to color the web!
What is CMYK?
CMYK is a color model used mainly for printing. It stands for Cyan, Magenta, Yellow, and Key (which is black). These four ink colors mix together in different amounts to create a wide range of colors on paper. When you print something, your printer uses CMYK to make sure all the colors look right. It’s like a recipe for colors, with each part (C, M, Y, K) adding a special touch to make the perfect shade for your printed pictures and texts.
How to Convert HEX to CMYK
While this tool makes it super easy to convert a hex color to CMYK here’s a little more detail about how the process works:
1. Convert HEX to RGB
Split the HEX code into 3 pairs:#32A852 → 32, A8, 52
Convert each from hex to decimal:
32→ 50A8→ 16852→ 82
So the RGB value is:rgb(50, 168, 82)
2. Normalize RGB Values
Divide each RGB value by 255:
- R = 50 / 255 ≈ 0.20
- G = 168 / 255 ≈ 0.66
- B = 82 / 255 ≈ 0.32
3. Find the Black Value (K)
K = 1 – max(R, G, B)
K = 1 – max(0.20, 0.66, 0.32) = 0.34
4. Calculate C, M, Y
If K = 1 → C = M = Y = 0
Otherwise:
- C = (1 – R – K) / (1 – K) = (1 – 0.20 – 0.34) / (1 – 0.34) ≈ 0.70
- M = (1 – G – K) / (1 – K) = (1 – 0.66 – 0.34) / 0.66 = 0
- Y = (1 – B – K) / (1 – K) = (1 – 0.32 – 0.34) / 0.66 ≈ 0.51
5. Convert to Percent
Just multiply by 100:
C = 70% M = 0% Y = 51% K = 34%