How HSV to CMYK conversion works
HSV and CMYK have a surprising amount in common: in both, the brightest channel decides how much black there is. V = 100% means no black ink at all in the naive formula, and S tells you how much of the opposite ink is missing. The converter still goes through RGB, but the relationship is close to direct.
- HSV → RGB with C = V × S, m = V − C and the 60° sector.
- K = 1 − max(R′, G′, B′), which equals 1 − V.
- C, M, Y = (1 − channel′ − K) ÷ (1 − K).
- Round each to whole percent.
Worked example: hsv(30, 80%, 95%) to CMYK
Here is the converter's own calculation for hsv(30, 80%, 95%), step by step. The result, cmyk(0%, 40%, 80%, 5%), is exactly what the tool above shows for this input.
- Chroma C = 0.95 × 0.8 = 0.76.
- X = 0.76 × (1 − |(30 ÷ 60) mod 2 − 1|) = 0.38.
- m = 0.95 − 0.76 = 0.19.
- 30° is in the 0–60° sector, so (R′, G′, B′) = (C, X, 0) = (0.76, 0.38, 0).
- Add m and multiply by 255: R = 242, G = 145, B = 48.
- R′ = 242 ÷ 255 = 0.949, G′ = 0.569, B′ = 0.188.
- K = 1 − max(R′, G′, B′) = 1 − 0.949 = 0.051.
- C = (1 − 0.949 − 0.051) ÷ (1 − 0.051) = 0; M = 0.401; Y = 0.802.
- Rounded to percent:
cmyk(0%, 40%, 80%, 5%).
Open Color, index 6 in HSV and CMYK
The thirteen index-6 colours from Open Color, an open-source palette tuned for UI.
| Colour | HSV | CMYK |
|---|---|---|
| gray | hsv(210, 11%, 59%) | cmyk(11%, 5%, 0%, 41%) |
| red | hsv(0, 67%, 98%) | cmyk(0%, 67%, 67%, 2%) |
| pink | hsv(339, 68%, 90%) | cmyk(0%, 68%, 44%, 10%) |
| grape | hsv(288, 66%, 86%) | cmyk(13%, 66%, 0%, 14%) |
| violet | hsv(255, 67%, 95%) | cmyk(50%, 67%, 0%, 5%) |
| indigo | hsv(228, 69%, 96%) | cmyk(69%, 55%, 0%, 4%) |
| blue | hsv(208, 85%, 90%) | cmyk(85%, 40%, 0%, 10%) |
| cyan | hsv(187, 89%, 75%) | cmyk(89%, 10%, 0%, 25%) |
| teal | hsv(162, 90%, 72%) | cmyk(90%, 0%, 27%, 28%) |
| green | hsv(131, 67%, 75%) | cmyk(67%, 0%, 54%, 25%) |
| lime | hsv(85, 85%, 79%) | cmyk(35%, 0%, 85%, 21%) |
| yellow | hsv(42, 98%, 98%) | cmyk(0%, 30%, 98%, 2%) |
| orange | hsv(27, 92%, 99%) | cmyk(0%, 50%, 92%, 1%) |
Source: Open Color 1.9.1
Precision test: every HSV value through the converter
Because K is just 1 − V, this is the best-behaved CMYK pair: 69.788% of the 3,672,360 whole-number HSV values survive HSV → CMYK → HSV exactly, drifting at most 2 levels. The profile comparison below is still the bigger effect.
Method: every whole-number HSV value, through the converter's own code and back, compared on the 0–255 scale (how we test).
| Measure | Result |
|---|---|
| HSV values tested | 3,672,360 |
| Distinct CMYK results | 1,881,260 |
| Came back exactly | 69.788% |
| Largest change (0–255 levels) | 2 |
| Average change | 0.3028 |
Last updated · Source: Pixohub exhaustive test of lib/color-math.ts
Formula vs a real print profile
Open Color's index-6 hues are bright, medium-saturation screen colours. The formula keeps them free of black ink, while the profile often adds a little and redistributes the others: the grey, for example, is 11/5/0/41 by formula and 47/35/27/1 through the profile. The largest single-ink difference was 40 points.
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.
| Colour | HEX | Formula C/M/Y/K | Profile C/M/Y/K | Profile total ink |
|---|---|---|---|---|
| gray | #868E96 | 11/5/0/41 | 47/35/27/1 | 110% |
| red | #FA5252 | 0/67/67/2 | 0/75/59/0 | 134% |
| pink | #E64980 | 0/68/44/10 | 1/83/16/0 | 100% |
| grape | #BE4BDB | 13/66/0/14 | 42/60/0/0 | 102% |
| violet | #7950F2 | 50/67/0/5 | 68/53/0/0 | 121% |
| indigo | #4C6EF5 | 69/55/0/4 | 70/45/0/0 | 115% |
| blue | #228BE6 | 85/40/0/10 | 65/36/0/0 | 101% |
| cyan | #15AABF | 89/11/0/25 | 73/5/15/1 | 94% |
| teal | #12B886 | 90/0/27/28 | 69/0/57/0 | 126% |
| green | #40C057 | 67/0/55/25 | 62/0/79/0 | 141% |
| lime | #82C91E | 35/0/85/21 | 44/0/92/1 | 137% |
| yellow | #FAB005 | 0/30/98/2 | 0/30/90/1 | 121% |
| orange | #FD7E14 | 0/50/92/1 | 0/55/85/0 | 140% |
Last updated · Source: Pixohub test, macOS Generic CMYK Profile via LittleCMS
Where you'll use HSV to CMYK
From a picker to a print brief
If you picked colours with HSB sliders, converting to CMYK shows roughly how much ink each will need, and the formula's K tells you immediately how dark it is.
Deciding brightness for print
Colours at V below about 30% will be mostly black ink; printers may suggest a rich black build instead of the formula's mix.
Explaining why print looks duller
High-S, high-V colours are the ones the profile changes most, which matches the colours that look duller on paper.
Common mistakes
- Assuming V = 100% means no ink at all: it means no black in the naive formula; the other inks still carry the colour.
- Using grey (S = 0) conversions as neutral: through a profile, neutral greys use all four inks to stay neutral on press.
- Skipping a proof for saturated oranges and blues.
- Treating the result as a spot colour match.