HSL to HEX: #FCD34D
Also known as: Tailwind v3 amber-300
Result
hsl(45.94 96.69% 64.51%) → #FCD34D
Values are shown at full precision, so converting back gives exactly #fcd34d. 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 = 45.94°, S = 96.69%, L = 64.51%
2. C
C = (1 − |2L − 1|) × S = 0.68631
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.52548 (H / 60° = 0.7657, sector 0)
4. m
m = L − C / 2 = 0.30195
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.68631, 0.52548, 0.00000) R = round((0.68631 + 0.30195) × 255) = 252 G = round((0.52548 + 0.30195) × 255) = 211 B = round((0.00000 + 0.30195) × 255) = 77
6. RGB → HEX
#FCD34D
All formats
- HEX
- #fcd34d
- RGB
- rgb(252 211 77)
- RGB (legacy)
- rgb(252, 211, 77)
- HSL
- hsl(45.94 96.69% 64.51%) → hsl(46 97% 65%)
- HWB
- hwb(46 30% 1%)
- OKLCH
- oklch(0.879 0.153 91.6) · oklch(87.9% 0.153 91.6)
- OKLab
- oklab(0.879 -0.004 0.153)
- Lab (D50)
- lab(86.41 4.93 68.60)
- LCH (D50)
- lch(86.41 68.78 85.89)
- Display P3
- color(display-p3 0.9623 0.8335 0.3978)
- Linear sRGB
- color(srgb-linear 0.9734 0.6514 0.0742)
Gamut: sRGB and Display P3
#FCD34D 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.202; this color uses 92% of the sRGB chroma available.
CSS snippets
.element {
color: #fcd34d;
color: rgb(252 211 77);
color: hsl(46 97% 65%);
color: oklch(0.879 0.153 91.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.879 0.153 91.6);
}
/* arbitrary values */
class="text-[#fcd34d] bg-[oklch(0.879_0.153_91.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9623 0.8335 0.3978); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fcd34d calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- amber-300#FFD230
- v3 yellow-400#FACC15
- gold#FFD700
- yellow-400#FDC700
- v3 yellow-300#FDE047
- yellow-300#FFDF20
- v3 amber-400#FBBF24
- amber-200#FEE685
Lighter and darker, same hue and chroma
- #FFE764 · oklch(0.939 0.153 91.6) · ΔL +0.06
- #E8BF33 · oklch(0.819 0.153 91.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?