HSL to CMYK Converter

HSL to CMYK: hsl(350, 89%, 60%) = cmyk(0%, 75%, 62%, 4%). See the formula worked step by step, a reference table, and our test of every HSL value.

How to use HSL to CMYK

  1. 1Enter an HSL colour.
  2. 2Read the formula CMYK.
  3. 3Compare against the profile column for print work.

Features

  • Goes HSL → RGB → CMYK, every step shown
  • Tailwind rose scale through a print profile
  • Notes on tints and total ink

How HSL to CMYK conversion works

There is no direct HSL to CMYK formula: the converter first rebuilds RGB from hue, saturation and lightness, then derives ink percentages from RGB with the standard naive formula. Both steps are simple, but the second one ignores paper and press, so the profile comparison below matters.

  • HSL → RGB: C = (1 − |2L − 1|) × S, X = C × (1 − |(H ÷ 60) mod 2 − 1|), m = L − C ÷ 2, then sector and +m.
  • R′, G′, B′ = RGB ÷ 255.
  • K = 1 − max(R′, G′, B′).
  • C, M, Y = (1 − channel′ − K) ÷ (1 − K).
  • Round to whole percentages.

Worked example: hsl(350, 89%, 60%) to CMYK

Here is the converter's own calculation for hsl(350, 89%, 60%), step by step. The result, cmyk(0%, 75%, 62%, 4%), is exactly what the tool above shows for this input.

  • Chroma C = (1 − |2 × 0.6 − 1|) × 0.89 = 0.712.
  • X = 0.712 × (1 − |(350 ÷ 60) mod 2 − 1|) = 0.119.
  • m = 0.6 − 0.712 ÷ 2 = 0.244.
  • 350° is in the 300–360° sector, so (R′, G′, B′) = (C, 0, X) = (0.712, 0, 0.119).
  • Add m and multiply by 255: R = 244, G = 62, B = 92.
  • R′ = 244 ÷ 255 = 0.957, G′ = 0.243, B′ = 0.361.
  • K = 1 − max(R′, G′, B′) = 1 − 0.957 = 0.043.
  • C = (1 − 0.957 − 0.043) ÷ (1 − 0.043) = 0; M = 0.746; Y = 0.623.
  • Rounded to percent: cmyk(0%, 75%, 62%, 4%).

Tailwind CSS rose scale in HSL and CMYK

Tailwind's rose from 50 to 950, from near-white to near-black.

ColourHSLCMYK
rose-50hsl(356, 100%, 97%)cmyk(0%, 6%, 5%, 0%)
rose-100hsl(356, 100%, 95%)cmyk(0%, 10%, 9%, 0%)
rose-200hsl(353, 96%, 90%)cmyk(0%, 19%, 17%, 0%)
rose-300hsl(353, 96%, 82%)cmyk(0%, 35%, 31%, 1%)
rose-400hsl(351, 95%, 71%)cmyk(0%, 56%, 47%, 2%)
rose-500hsl(350, 89%, 60%)cmyk(0%, 75%, 62%, 4%)
rose-600hsl(347, 77%, 50%)cmyk(0%, 87%, 68%, 11%)
rose-700hsl(345, 83%, 41%)cmyk(0%, 91%, 68%, 25%)
rose-800hsl(343, 80%, 35%)cmyk(0%, 89%, 64%, 37%)
rose-900hsl(342, 75%, 30%)cmyk(0%, 86%, 60%, 47%)
rose-950hsl(343, 88%, 16%)cmyk(0%, 94%, 68%, 70%)

Source: Tailwind CSS v3.4 default palette (tailwindcss 3.4.17)

Precision test: every HSL value through the converter

Of the 3,672,360 whole-number HSL values, 20.357% survive HSL → CMYK → HSL exactly (worst 2 RGB levels); together they need only 1,407,708 distinct CMYK recipes. That rounding is minor next to the profile differences below.

Method: every whole-number HSL value, through the converter's own code and back, compared on the 0–255 scale (how we test).

MeasureResult
HSL values tested3,672,360
Distinct CMYK results1,407,708
Came back exactly20.357%
Largest change (0–255 levels)2
Average change0.8763

Last updated · Source: Pixohub exhaustive test of lib/color-math.ts

Formula vs a real print profile

The Tailwind rose scale goes from near-white to near-black, which makes the formula's weak spots visible. The lightest tint, rose-50, is 0/5/5/0 by formula and 2/6/2/0 through the profile; at the dark end the profile starts building with all four inks. The largest single-ink difference across the scale was 29 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.

ColourHEXFormula C/M/Y/KProfile C/M/Y/KProfile total ink
rose-50#FFF1F20/5/5/02/6/2/010%
rose-100#FFE4E60/11/10/02/11/4/017%
rose-200#FECDD30/19/17/01/22/5/028%
rose-300#FDA4AF0/35/31/10/40/13/053%
rose-400#FB71850/55/47/20/62/27/089%
rose-500#F43F5E0/74/61/40/82/47/0129%
rose-600#E11D480/87/68/121/94/62/1158%
rose-700#BE123C0/91/68/254/97/65/11177%
rose-800#9F12390/89/64/3811/95/58/23187%
rose-900#8813370/86/60/4714/95/52/32193%
rose-950#4C05190/93/67/7029/91/61/58239%

Last updated · Source: Pixohub test, macOS Generic CMYK Profile via LittleCMS

Where you'll use HSL to CMYK

Printing a CSS-defined palette

If your web palette lives in hsl() and you need flyers or packaging to match, this gives a first CMYK estimate per step. Confirm with a profile conversion before final artwork.

Choosing printable tints

Very light tints (L above 90%) translate into single-digit ink percentages that some presses can't hold reliably; printers often recommend keeping tints above about 5%.

Seeing which colours will dull in print

Highly saturated mid-lightness colours, such as rose-500, are where formula and profile disagree most: the profile is telling you the press can't match the screen.

Common mistakes

  • Assuming lightness maps to K: a light colour usually has K = 0, and darkness in the profile result comes from all four inks.
  • Sending formula values as final separations without asking for the printer's profile.
  • Ignoring dot gain: on uncoated paper, the same CMYK prints darker than on coated stock.
  • Expecting a 1:1 visual match for saturated pinks and blues, which are often outside the CMYK gamut.

Frequently asked questions

What is hsl(350, 89%, 60%) in CMYK?

By formula, cmyk(0%, 75%, 62%, 4%). A profile conversion will differ; see the table for rose-500 through a real profile.

Can I convert HSL to CMYK without RGB?

Not meaningfully. HSL is a rearrangement of RGB, so every converter goes through RGB first.

Why does my printer's proof look different?

Your printer converts with an ICC profile for its press and paper. The comparison table shows how much a profile changes the numbers even before ink and paper come into play.

What total ink should I stay under?

Ask your printer: limits around 300% are common for coated paper and lower for uncoated. The formula's values are always well below that; profile results for dark colours can approach it.

More text, code & dev tools