OKLCH to HEX: #881337

Also known as: Tailwind v3 rose-900

Result

oklch(0.41033 0.15017 10.272) → #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

    oklch(0.41033 0.15017 10.272)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.14776
    b = C·sin H = 0.02678
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.474673
    m′ = L − 0.1056·a − 0.0639·b = 0.393022
    s′ = L − 0.0895·a − 1.2915·b = 0.362523
  4. 4. cube

    l = 0.474673³ = 0.106951
    m = 0.393022³ = 0.060709
    s = 0.362523³ = 0.047644
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.246208
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.006513
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.038205
  6. 6. linear → sRGB, × 255

    R = 0.53334 × 255 = 136.00 → 136
    G = 0.07451 × 255 = 19.00 → 19
    B = 0.21569 × 255 = 55.00 → 55
  7. 7. 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?