OKLCH to HEX: #991B1B

Also known as: Tailwind v3 red-800

Result

oklch(0.44369 0.16132 26.899) → #991B1B

Values are shown at full precision, so converting back gives exactly #991b1b. 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.44369 0.16132 26.899)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.14387
    b = C·sin H = 0.07298
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.516460
    m′ = L − 0.1056·a − 0.0639·b = 0.423843
    s′ = L − 0.0895·a − 1.2915·b = 0.336558
  4. 4. cube

    l = 0.516460³ = 0.137756
    m = 0.423843³ = 0.076140
    s = 0.336558³ = 0.038122
  5. 5. LMS → linear sRGB

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

    R = 0.60000 × 255 = 153.00 → 153
    G = 0.10589 × 255 = 27.00 → 27
    B = 0.10589 × 255 = 27.00 → 27
  7. 7. RGB → HEX

    #991B1B

All formats

HEX
#991b1b
RGB
rgb(153 27 27)
RGB (legacy)
rgb(153, 27, 27)
HSL
hsl(0.00 70.00% 35.29%) → hsl(0 70% 35%)
HWB
hwb(0 11% 40%)
OKLCH
oklch(0.444 0.161 26.9) · oklch(44.4% 0.161 26.9)
OKLab
oklab(0.444 0.144 0.073)
Lab (D50)
lab(33.86 50.80 35.41)
LCH (D50)
lch(33.86 61.92 34.88)
Display P3
color(display-p3 0.5506 0.1567 0.1344)
Linear sRGB
color(srgb-linear 0.3185 0.0110 0.0110)

Gamut: sRGB and Display P3

#991B1B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.181 and Display P3 reaches 0.204; this color uses 89% of the sRGB chroma available.

CSS snippets

.element {
  color: #991b1b;
  color: rgb(153 27 27);
  color: hsl(0 70% 35%);
  color: oklch(0.444 0.161 26.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.444 0.161 26.9);
}
/* arbitrary values */
class="text-[#991b1b] bg-[oklch(0.444_0.161_26.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5506 0.1567 0.1344); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #991b1b 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

  • #AE322D · oklch(0.504 0.161 26.9) · ΔL +0.06
  • #850006 · oklch(0.384 0.161 26.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?