HSL to HEX: #FE9A00
Also known as: Tailwind amber-500
Result
hsl(36.38 100.00% 49.80%) → #FE9A00
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. input
H = 36.38°, S = 100.00%, L = 49.80%
2. C
C = (1 − |2L − 1|) × S = 0.99600
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.60391 (H / 60° = 0.6063, sector 0)
4. m
m = L − C / 2 = 0.00000
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.99600, 0.60391, 0.00000) R = round((0.99600 + 0.00000) × 255) = 254 G = round((0.60391 + 0.00000) × 255) = 154 B = round((0.00000 + 0.00000) × 255) = 0
6. RGB → HEX
#FE9A00
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?