OKLCH to HEX: #460809

Also known as: Tailwind red-950

Result

oklch(0.25748 0.09177 25.840) → #460809

Values are shown at full precision, so converting back gives exactly #460809. 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.25748 0.09177 25.840)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.08259
    b = C·sin H = 0.04000
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.298847
    m′ = L − 0.1056·a − 0.0639·b = 0.246207
    s′ = L − 0.0895·a − 1.2915·b = 0.198431
  4. 4. cube

    l = 0.298847³ = 0.026690
    m = 0.246207³ = 0.014925
    s = 0.198431³ = 0.007813
  5. 5. LMS → linear sRGB

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

    R = 0.27451 × 255 = 70.00 → 70
    G = 0.03137 × 255 = 8.00 → 8
    B = 0.03529 × 255 = 9.00 → 9
  7. 7. RGB → HEX

    #460809

All formats

HEX
#460809
RGB
rgb(70 8 9)
RGB (legacy)
rgb(70, 8, 9)
HSL
hsl(359.03 79.49% 15.29%) → hsl(359 79% 15%)
HWB
hwb(359 3% 73%)
OKLCH
oklch(0.257 0.092 25.8) · oklch(25.7% 0.092 25.8)
OKLab
oklab(0.257 0.083 0.040)
Lab (D50)
lab(12.94 28.99 16.58)
LCH (D50)
lch(12.94 33.39 29.77)
Display P3
color(display-p3 0.2498 0.0548 0.0474)
Linear sRGB
color(srgb-linear 0.0612 0.0024 0.0027)

Gamut: sRGB and Display P3

#460809 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.105 and Display P3 reaches 0.118; this color uses 88% of the sRGB chroma available.

CSS snippets

.element {
  color: #460809;
  color: rgb(70 8 9);
  color: hsl(359 79% 15%);
  color: oklch(0.257 0.092 25.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.257 0.092 25.8);
}
/* arbitrary values */
class="text-[#460809] bg-[oklch(0.257_0.092_25.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2498 0.0548 0.0474); }
}

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

  • #581A18 · oklch(0.317 0.092 25.8) · ΔL +0.06
  • #340000 · oklch(0.197 0.092 25.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?