How CMYK to HSV conversion works
CMYK and HSV line up neatly in the naive model: black ink sets value (V = 1 − K when one of C, M or Y is zero), and the coloured inks set saturation and hue. The converter goes through RGB, but you can often read V straight from K.
- CMYK → RGB with the naive formula.
- V = max(R′, G′, B′), which is (1 − K) × (1 − the smallest of C, M, Y).
- S = (V − min) ÷ V.
- H from the largest channel.
Worked example: cmyk(75%, 10%, 0%, 30%) to HSV
Here is the converter's own calculation for cmyk(75%, 10%, 0%, 30%), step by step. The result, hsv(188, 75%, 70%), is exactly what the tool above shows for this input.
- As fractions: C = 0.75, M = 0.1, Y = 0, K = 0.3.
- R = 255 × (1 − 0.75) × (1 − 0.3) = 44.63 → 45.
- G = 255 × (1 − 0.1) × (1 − 0.3) = 160.65 → 161.
- B = 255 × (1 − 0) × (1 − 0.3) = 178.5 → 179.
- R′ = 45 ÷ 255 = 0.176, G′ = 0.631, B′ = 0.702.
- Cmax = 0.702, Cmin = 0.176, Δ = 0.525.
- V = Cmax = 0.702.
- S = Δ ÷ V = 0.749.
- Blue is largest: H = 60° × ((0.176 − 0.631) ÷ 0.525 + 4) = 188.1°.
- Rounded:
hsv(188, 75%, 70%).
Cool greys: 30% cyan plus black in CMYK and HSV
Common ink recipes and what they become on screen.
| Colour | CMYK | HSV |
|---|---|---|
| C30 K0 | cmyk(30%, 0%, 0%, 0%) | hsv(180, 30%, 100%) |
| C30 K10 | cmyk(30%, 0%, 0%, 10%) | hsv(180, 30%, 90%) |
| C30 K20 | cmyk(30%, 0%, 0%, 20%) | hsv(180, 30%, 80%) |
| C30 K30 | cmyk(30%, 0%, 0%, 30%) | hsv(180, 30%, 70%) |
| C30 K40 | cmyk(30%, 0%, 0%, 40%) | hsv(180, 30%, 60%) |
| C30 K50 | cmyk(30%, 0%, 0%, 50%) | hsv(180, 30%, 50%) |
| C30 K60 | cmyk(30%, 0%, 0%, 60%) | hsv(180, 30%, 40%) |
| C30 K70 | cmyk(30%, 0%, 0%, 70%) | hsv(180, 30%, 30%) |
| C30 K80 | cmyk(30%, 0%, 0%, 80%) | hsv(180, 29%, 20%) |
| C30 K90 | cmyk(30%, 0%, 0%, 90%) | hsv(180, 28%, 10%) |
Precision test: every CMYK value through the converter
The 104,060,401 whole-number recipes produce 2,417,102 distinct HSV values. Going back to CMYK reproduces the same colour 28.128% of the time, never more than 3 levels off.
Method: every whole-number CMYK value, through the converter's own code and back, compared on the 0–255 scale (how we test).
| Measure | Result |
|---|---|
| CMYK values tested | 104,060,401 |
| Distinct HSV results | 2,417,102 |
| Came back exactly | 28.128% |
| Largest change (0–255 levels) | 3 |
| Average change | 0.7439 |
Last updated · Source: Pixohub exhaustive test of lib/color-math.ts
Formula vs a real print profile
A cool grey built from 30% cyan with rising black shows the formula and profile disagreeing on how blue the grey looks. With no black, 30% cyan is #B2FFFF by formula and #AADCED through the profile. The largest per-channel difference down the ramp was 35 levels.
The converter above uses the standard formula. To show what a colour-managed conversion does, we converted the same colours with LittleCMS 2.19 through the Generic CMYK profile that ships with macOS (relative colorimetric intent with black point compensation, the default in Photoshop). Your printer's profile will give different numbers again, but in the same direction.
| Recipe | C/M/Y/K | Formula | Profile |
|---|---|---|---|
| C30 K0 | 30/0/0/0 | #B2FFFF | #AADCED |
| C30 K10 | 30/0/0/10 | #A1E6E6 | #9CC8D7 |
| C30 K20 | 30/0/0/20 | #8FCCCC | #8CB5C3 |
| C30 K30 | 30/0/0/30 | #7DB2B2 | #7CA1AF |
| C30 K40 | 30/0/0/40 | #6B9999 | #6C8D99 |
| C30 K50 | 30/0/0/50 | #598080 | #5C7A85 |
| C30 K60 | 30/0/0/60 | #476666 | #4D6973 |
| C30 K70 | 30/0/0/70 | #364D4D | #3F575F |
| C30 K80 | 30/0/0/80 | #243333 | #2F4249 |
| C30 K90 | 30/0/0/90 | #121919 | #1B282E |
Last updated · Source: Pixohub test, macOS Generic CMYK Profile via LittleCMS
Where you'll use CMYK to HSV
Matching print colours in a design app
Photoshop, Procreate and Affinity's HSB sliders are a quick way to recreate a print colour on screen; this gives you the starting values.
Designing cool or warm greys
Cool greys are often built from a little cyan plus black. Converting the ramp below shows that, by formula, saturation stays constant while value drops with K.
Animation and UI from print palettes
Motion designers often animate brightness in HSV. Converting a print palette gives V values to animate from.
Common mistakes
- Expecting a K-only grey to look neutral in print: a grey from black ink alone is neutral on screen but can look slightly warm or cool on paper.
- Assuming V is lightness: V of 100% can still be a dark-looking blue.
- Ignoring that profile conversions reduce saturation for most inks.
- Converting back and expecting the same ink recipe.