#fcdf21
a balanced, electric yellow · cool · closest name: gold
RGB
252, 223, 33
HSL
52°, 97%, 56%
CMYK
0, 12, 87, 1
Luminance
0.7358
Every format
| HEX | #fcdf21 |
| RGB | rgb(252, 223, 33) |
| HSL | hsl(52, 97%, 56%) |
| CMYK | cmyk(0%, 12%, 87%, 1%) |
| LAB | lab(88.7 -6.8 84.3) |
| LCH | lch(88.7 84.6 94.6) |
| OKLCH | oklch(0.900 0.181 99.3) |
Copy-ready code
/* CSS */
color: #fcdf21;
background-color: #fcdf21;
/* Tailwind (arbitrary) */
class="text-[#fcdf21] bg-[#fcdf21]"
/* SCSS */
$brand: #fcdf21;
/* SwiftUI */
Color(red: 0.988, green: 0.875, blue: 0.129)
/* Android */
Color.parseColor("#fcdf21")Accessibility — WCAG contrast
Aa
#fcdf21 on white: 1.34:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fcdf21 on black: 15.72:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.8%
Green87.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta11.5%
Yellow86.9%
Key (black)1.2%
Color previews
#fcdf21 text on a black background
contrast 15.72:1
Card sample
#fcdf21 text on a white background
contrast 1.34:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fcdf21;
Background color
Panel with #fcdf21 background
background-color: #fcdf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fcdf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(252, 223, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 223, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcdf21; background: linear-gradient(135deg, #fcdf21, #87FC21);