HEX to HSL: #973C00
Also known as: Tailwind amber-800
Result
#973C00 → hsl(24 100% 30%)
Values are shown at full precision, so converting back gives exactly #973c00. 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.5922 G = 0.2353 B = 0.0000
2. max, min, Δ
max = 0.5922 min = 0.0000 Δ = max − min = 0.5922
3. L
L = (max + min) / 2 = 0.2961 = 29.61%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.2353 − 0.0000) / 0.5922) mod 6) = 23.84°
6. HSL
hsl(23.84 100.00% 29.61%)
All formats
- HEX
- #973c00
- RGB
- rgb(151 60 0)
- RGB (legacy)
- rgb(151, 60, 0)
- HSL
- hsl(23.84 100.00% 29.61%) → hsl(24 100% 30%)
- HWB
- hwb(24 0% 41%)
- OKLCH
- oklch(0.475 0.136 45.0) · oklch(47.5% 0.136 45.0)
- OKLab
- oklab(0.475 0.096 0.096)
- Lab (D50)
- lab(38.07 37.26 49.37)
- LCH (D50)
- lch(38.07 61.85 52.96)
- Display P3
- color(display-p3 0.5493 0.2576 0.0901)
- Linear sRGB
- color(srgb-linear 0.3095 0.0452 0.0000)
Gamut: sRGB and Display P3
#973C00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.136 and Display P3 reaches 0.154; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #973c00;
color: rgb(151 60 0);
color: hsl(24 100% 30%);
color: oklch(0.475 0.136 45.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.475 0.136 45.0);
}
/* arbitrary values */
class="text-[#973c00] bg-[oklch(0.475_0.136_45.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5493 0.2576 0.0901); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #973c00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 amber-800#92400E
- v3 orange-800#9A3412
- saddlebrown#8B4513
- orange-800#9F2D00
- yellow-800#894B00
- v3 yellow-800#854D0E
- brown#A52A2A
- sienna#A0522D
Lighter and darker, same hue and chroma
- #AB4E1D · oklch(0.535 0.136 45.0) · ΔL +0.06
- #832A00 · oklch(0.415 0.136 45.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?