HEX to HSL: #92400E
Also known as: Tailwind v3 amber-800
Result
#92400E → hsl(23 83% 31%)
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. RGB ÷ 255
R = 0.5725 G = 0.2510 B = 0.0549
2. max, min, Δ
max = 0.5725 min = 0.0549 Δ = max − min = 0.5176
3. L
L = (max + min) / 2 = 0.3137 = 31.37%
4. S
S = Δ / (1 − |2L − 1|) = 0.8250 = 82.50%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.2510 − 0.0549) / 0.5176) mod 6) = 22.73°
6. HSL
hsl(22.73 82.50% 31.37%)
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?