HSL to HEX: #881337

Also known as: Tailwind v3 rose-900

Result

hsl(341.54 75.48% 30.39%) → #881337

Values are shown at full precision, so converting back gives exactly #881337. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    H = 341.54°, S = 75.48%, L = 30.39%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.45877
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.14115   (H / 60° = 5.6923, sector 5)
  4. 4. m

    m = L − C / 2 = 0.07452
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.45877, 0.00000, 0.14115)
    R = round((0.45877 + 0.07452) × 255) = 136
    G = round((0.00000 + 0.07452) × 255) = 19
    B = round((0.14115 + 0.07452) × 255) = 55
  6. 6. RGB → HEX

    #881337

All formats

HEX
#881337
RGB
rgb(136 19 55)
RGB (legacy)
rgb(136, 19, 55)
HSL
hsl(341.54 75.48% 30.39%) → hsl(342 75% 30%)
HWB
hwb(342 7% 47%)
OKLCH
oklch(0.410 0.150 10.3) · oklch(41.0% 0.150 10.3)
OKLab
oklab(0.410 0.148 0.027)
Lab (D50)
lab(29.85 48.71 11.83)
LCH (D50)
lch(29.85 50.12 13.65)
Display P3
color(display-p3 0.4886 0.1256 0.2194)
Linear sRGB
color(srgb-linear 0.2462 0.0065 0.0382)

Gamut: sRGB and Display P3

#881337 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.164 and Display P3 reaches 0.185; this color uses 92% of the sRGB chroma available.

CSS snippets

.element {
  color: #881337;
  color: rgb(136 19 55);
  color: hsl(342 75% 30%);
  color: oklch(0.410 0.150 10.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.410 0.150 10.3);
}
/* arbitrary values */
class="text-[#881337] bg-[oklch(0.410_0.150_10.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4886 0.1256 0.2194); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #881337 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #9C2A47 · oklch(0.470 0.150 10.3) · ΔL +0.06
  • #740028 · oklch(0.350 0.150 10.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?