HEX to OKLCH: #92400E
Also known as: Tailwind v3 amber-800
Result
#92400E → oklch(0.473 0.125 46.2)
Values are shown at full precision, so converting back gives exactly #92400e. 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. sRGB → linear
R: 146/255 = 0.57255 → 0.287441 (((x + 0.055) / 1.055)^2.4) G: 64/255 = 0.25098 → 0.051269 (((x + 0.055) / 1.055)^2.4) B: 14/255 = 0.05490 → 0.004391 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.146213 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.096280 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.042592
3. cube root
l′ = ∛0.146213 = 0.526819 m′ = ∛0.096280 = 0.458331 s′ = ∛0.042592 = 0.349228
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.47319 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.08631 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.09000
5. Oklab → OKLCH
C = √(a² + b²) = 0.12470 H = atan2(b, a) = 46.201° L = 0.47319
6. OKLCH
oklch(0.47319 0.12470 46.201) rounded: oklch(0.473 0.125 46.2)
All formats
- HEX
- #92400e
- RGB
- rgb(146 64 14)
- RGB (legacy)
- rgb(146, 64, 14)
- HSL
- hsl(22.73 82.50% 31.37%) → hsl(23 83% 31%)
- HWB
- hwb(23 5% 43%)
- OKLCH
- oklch(0.473 0.125 46.2) · oklch(47.3% 0.125 46.2)
- OKLab
- oklab(0.473 0.086 0.090)
- Lab (D50)
- lab(38.02 33.49 44.16)
- LCH (D50)
- lch(38.02 55.42 52.82)
- Display P3
- color(display-p3 0.5326 0.2697 0.1156)
- Linear sRGB
- color(srgb-linear 0.2874 0.0513 0.0044)
Gamut: sRGB and Display P3
#92400E is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.133 and Display P3 reaches 0.150; this color uses 94% of the sRGB chroma available.
CSS snippets
.element {
color: #92400e;
color: rgb(146 64 14);
color: hsl(23 83% 31%);
color: oklch(0.473 0.125 46.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.473 0.125 46.2);
}
/* arbitrary values */
class="text-[#92400e] bg-[oklch(0.473_0.125_46.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5326 0.2697 0.1156); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #92400e calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-800#973C00
- saddlebrown#8B4513
- v3 orange-800#9A3412
- yellow-800#894B00
- v3 yellow-800#854D0E
- orange-800#9F2D00
- sienna#A0522D
- amber-900#7B3306
Lighter and darker, same hue and chroma
- #A65225 · oklch(0.533 0.125 46.2) · ΔL +0.06
- #7F2E00 · oklch(0.413 0.125 46.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?