OKLCH to HEX: #8B0836
Also known as: Tailwind rose-900
Result
oklch(0.41051 0.15900 10.192) → #8B0836
Values are shown at full precision, so converting back gives exactly #8b0836. 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.41051 0.15900 10.192)
2. OKLCH → Oklab
a = C·cos H = 0.15649 b = C·sin H = 0.02813
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.478605 m′ = L − 0.1056·a − 0.0639·b = 0.392194 s′ = L − 0.0895·a − 1.2915·b = 0.360171
4. cube
l = 0.478605³ = 0.109630 m = 0.392194³ = 0.060326 s = 0.360171³ = 0.046723
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.258186 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.002429 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.036890
6. linear → sRGB, × 255
R = 0.54510 × 255 = 139.00 → 139 G = 0.03138 × 255 = 8.00 → 8 B = 0.21177 × 255 = 54.00 → 54
7. RGB → HEX
#8B0836
All formats
- HEX
- #8b0836
- RGB
- rgb(139 8 54)
- RGB (legacy)
- rgb(139, 8, 54)
- HSL
- hsl(338.93 89.12% 28.82%) → hsl(339 89% 29%)
- HWB
- hwb(339 3% 45%)
- OKLCH
- oklch(0.411 0.159 10.2) · oklch(41.1% 0.159 10.2)
- OKLab
- oklab(0.411 0.156 0.028)
- Lab (D50)
- lab(29.77 51.52 12.53)
- LCH (D50)
- lch(29.77 53.02 13.67)
- Display P3
- color(display-p3 0.4986 0.1056 0.2156)
- Linear sRGB
- color(srgb-linear 0.2582 0.0024 0.0369)
Gamut: sRGB and Display P3
#8B0836 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 97% of the sRGB chroma available.
CSS snippets
.element {
color: #8b0836;
color: rgb(139 8 54);
color: hsl(339 89% 29%);
color: oklch(0.411 0.159 10.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.411 0.159 10.2);
}
/* arbitrary values */
class="text-[#8b0836] bg-[oklch(0.411_0.159_10.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4986 0.1056 0.2156); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #8b0836 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 rose-900#881337
- pink-900#861043
- v3 pink-900#831843
- red-900#82181A
- v3 rose-800#9F1239
- v3 red-900#7F1D1D
- v3 pink-800#9D174D
- darkred#8B0000
Lighter and darker, same hue and chroma
- #9F2446 · oklch(0.471 0.159 10.2) · ΔL +0.06
- #770027 · oklch(0.351 0.159 10.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?