HEX to RGB: #FCD34D
Also known as: Tailwind v3 amber-300
Result
#FCD34D → rgb(252 211 77)
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. HEX → pairs
#FCD34D → FC | D3 | 4D
2. base 16 → base 10
R = FC₁₆ = 15×16 + 12 = 252 G = D3₁₆ = 13×16 + 3 = 211 B = 4D₁₆ = 4×16 + 13 = 77
3. RGB
rgb(252 211 77)
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?