OKLCH to HEX: #9A3412

Also known as: Tailwind v3 orange-800

Result

oklch(0.46980 0.14305 37.304) → #9A3412

Values are shown at full precision, so converting back gives exactly #9a3412. 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.46980 0.14305 37.304)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.11379
    b = C·sin H = 0.08669
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.533607
    m′ = L − 0.1056·a − 0.0639·b = 0.452253
    s′ = L − 0.0895·a − 1.2915·b = 0.347653
  4. 4. cube

    l = 0.533607³ = 0.151937
    m = 0.452253³ = 0.092500
    s = 0.347653³ = 0.042018
  5. 5. LMS → linear sRGB

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

    R = 0.60393 × 255 = 154.00 → 154
    G = 0.20392 × 255 = 52.00 → 52
    B = 0.07057 × 255 = 18.00 → 18
  7. 7. RGB → HEX

    #9A3412

All formats

HEX
#9a3412
RGB
rgb(154 52 18)
RGB (legacy)
rgb(154, 52, 18)
HSL
hsl(15.00 79.07% 33.73%) → hsl(15 79% 34%)
HWB
hwb(15 7% 40%)
OKLCH
oklch(0.470 0.143 37.3) · oklch(47.0% 0.143 37.3)
OKLab
oklab(0.470 0.114 0.087)
Lab (D50)
lab(37.28 42.22 42.83)
LCH (D50)
lch(37.28 60.14 45.41)
Display P3
color(display-p3 0.5582 0.2319 0.1206)
Linear sRGB
color(srgb-linear 0.3231 0.0343 0.0060)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #9a3412;
  color: rgb(154 52 18);
  color: hsl(15 79% 34%);
  color: oklch(0.470 0.143 37.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.470 0.143 37.3);
}
/* arbitrary values */
class="text-[#9a3412] bg-[oklch(0.470_0.143_37.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.5582 0.2319 0.1206); }
}

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

  • #AE4727 · oklch(0.530 0.143 37.3) · ΔL +0.06
  • #862000 · oklch(0.410 0.143 37.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?