OKLCH to HEX: #8B4513
Also known as: CSS saddlebrown
Result
oklch(0.47078 0.11214 50.845) → #8B4513
Values are shown at full precision, so converting back gives exactly #8b4513. 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. input
oklch(0.47078 0.11214 50.845)
2. OKLCH → Oklab
a = C·cos H = 0.07081 b = C·sin H = 0.08696
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.517610 m′ = L − 0.1056·a − 0.0639·b = 0.457753 s′ = L − 0.0895·a − 1.2915·b = 0.352139
4. cube
l = 0.517610³ = 0.138678 m = 0.457753³ = 0.095916 s = 0.352139³ = 0.043666
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.258175 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.059511 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.006513
6. linear → sRGB, × 255
R = 0.54509 × 255 = 139.00 → 139 G = 0.27059 × 255 = 69.00 → 69 B = 0.07452 × 255 = 19.00 → 19
7. RGB → HEX
#8B4513
All formats
- HEX
- #8b4513
- RGB
- rgb(139 69 19)
- RGB (legacy)
- rgb(139, 69, 19)
- HSL
- hsl(25.00 75.95% 30.98%) → hsl(25 76% 31%)
- HWB
- hwb(25 7% 45%)
- OKLCH
- oklch(0.471 0.112 50.8) · oklch(47.1% 0.112 50.8)
- OKLab
- oklab(0.471 0.071 0.087)
- Lab (D50)
- lab(37.93 28.08 41.57)
- LCH (D50)
- lch(37.93 50.16 55.96)
- Display P3
- color(display-p3 0.5095 0.2852 0.1266)
- Linear sRGB
- color(srgb-linear 0.2582 0.0595 0.0065)
Gamut: sRGB and Display P3
#8B4513 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.123 and Display P3 reaches 0.140; this color uses 91% of the sRGB chroma available.
CSS snippets
.element {
color: #8b4513;
color: rgb(139 69 19);
color: hsl(25 76% 31%);
color: oklch(0.471 0.112 50.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.471 0.112 50.8);
}
/* arbitrary values */
class="text-[#8b4513] bg-[oklch(0.471_0.112_50.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5095 0.2852 0.1266); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #8b4513 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 amber-800#92400E
- yellow-800#894B00
- v3 yellow-800#854D0E
- amber-800#973C00
- v3 orange-800#9A3412
- yellow-900#733E0A
- orange-800#9F2D00
- v3 yellow-900#713F12
Lighter and darker, same hue and chroma
- #9E5628 · oklch(0.531 0.112 50.8) · ΔL +0.06
- #783400 · oklch(0.411 0.112 50.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?