HEX to HSL: #F59E0B
Also known as: Tailwind v3 amber-500
Result
#F59E0B → hsl(38 92% 50%)
Values are shown at full precision, so converting back gives exactly #f59e0b. 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.9608 G = 0.6196 B = 0.0431
2. max, min, Δ
max = 0.9608 min = 0.0431 Δ = max − min = 0.9176
3. L
L = (max + min) / 2 = 0.5020 = 50.20%
4. S
S = Δ / (1 − |2L − 1|) = 0.9213 = 92.13%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.6196 − 0.0431) / 0.9176) mod 6) = 37.69°
6. HSL
hsl(37.69 92.13% 50.20%)
All formats
- HEX
- #f59e0b
- RGB
- rgb(245 158 11)
- RGB (legacy)
- rgb(245, 158, 11)
- HSL
- hsl(37.69 92.13% 50.20%) → hsl(38 92% 50%)
- HWB
- hwb(38 4% 4%)
- OKLCH
- oklch(0.769 0.165 70.1) · oklch(76.9% 0.165 70.1)
- OKLab
- oklab(0.769 0.056 0.155)
- Lab (D50)
- lab(72.79 26.93 75.43)
- LCH (D50)
- lch(72.79 80.10 70.35)
- Display P3
- color(display-p3 0.9122 0.6349 0.2305)
- Linear sRGB
- color(srgb-linear 0.9131 0.3419 0.0033)
Gamut: sRGB and Display P3
#F59E0B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.166 and Display P3 reaches 0.191; this color uses 99% of the sRGB chroma available.
CSS snippets
.element {
color: #f59e0b;
color: rgb(245 158 11);
color: hsl(38 92% 50%);
color: oklch(0.769 0.165 70.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.769 0.165 70.1);
}
/* arbitrary values */
class="text-[#f59e0b] bg-[oklch(0.769_0.165_70.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9122 0.6349 0.2305); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f59e0b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-500#FE9A00
- orange#FFA500
- v3 orange-400#FB923C
- darkorange#FF8C00
- goldenrod#DAA520
- yellow-500#F0B100
- sandybrown#F4A460
- orange-400#FF8904
Lighter and darker, same hue and chroma
- #FFB133 · oklch(0.829 0.165 70.1) · ΔL +0.06
- #E18B00 · oklch(0.709 0.165 70.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?