HEX to HSL: #FE9A00
Also known as: Tailwind amber-500
Result
#FE9A00 → hsl(36 100% 50%)
Values are shown at full precision, so converting back gives exactly #fe9a00. 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.9961 G = 0.6039 B = 0.0000
2. max, min, Δ
max = 0.9961 min = 0.0000 Δ = max − min = 0.9961
3. L
L = (max + min) / 2 = 0.4980 = 49.80%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.6039 − 0.0000) / 0.9961) mod 6) = 36.38°
6. HSL
hsl(36.38 100.00% 49.80%)
All formats
- HEX
- #fe9a00
- RGB
- rgb(254 154 0)
- RGB (legacy)
- rgb(254, 154, 0)
- HSL
- hsl(36.38 100.00% 49.80%) → hsl(36 100% 50%)
- HWB
- hwb(36 0% 0%)
- OKLCH
- oklch(0.772 0.173 65.4) · oklch(77.2% 0.173 65.4)
- OKLab
- oklab(0.772 0.072 0.157)
- Lab (D50)
- lab(73.03 32.55 77.57)
- LCH (D50)
- lch(73.03 84.12 67.24)
- Display P3
- color(display-p3 0.9417 0.6224 0.2218)
- Linear sRGB
- color(srgb-linear 0.9911 0.3231 0.0000)
Gamut: sRGB and Display P3
#FE9A00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.173 and Display P3 reaches 0.198; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #fe9a00;
color: rgb(254 154 0);
color: hsl(36 100% 50%);
color: oklch(0.772 0.173 65.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.772 0.173 65.4);
}
/* arbitrary values */
class="text-[#fe9a00] bg-[oklch(0.772_0.173_65.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9417 0.6224 0.2218); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fe9a00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 amber-500#F59E0B
- orange#FFA500
- darkorange#FF8C00
- v3 orange-400#FB923C
- orange-400#FF8904
- sandybrown#F4A460
- yellow-500#F0B100
- goldenrod#DAA520
Lighter and darker, same hue and chroma
- #FFAD30 · oklch(0.832 0.173 65.4) · ΔL +0.06
- #E98700 · oklch(0.712 0.173 65.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?