#fcdf42
a balanced, electric yellow · cool · closest name: gold
RGB
252, 223, 66
HSL
51°, 97%, 62%
CMYK
0, 12, 74, 1
Luminance
0.7386
Every format
| HEX | #fcdf42 |
| RGB | rgb(252, 223, 66) |
| HSL | hsl(51, 97%, 62%) |
| CMYK | cmyk(0%, 12%, 74%, 1%) |
| LAB | lab(88.9 -5.8 75.6) |
| LCH | lch(88.9 75.8 94.4) |
| OKLCH | oklch(0.902 0.168 98.3) |
Copy-ready code
/* CSS */
color: #fcdf42;
background-color: #fcdf42;
/* Tailwind (arbitrary) */
class="text-[#fcdf42] bg-[#fcdf42]"
/* SCSS */
$brand: #fcdf42;
/* SwiftUI */
Color(red: 0.988, green: 0.875, blue: 0.259)
/* Android */
Color.parseColor("#fcdf42")Accessibility — WCAG contrast
Aa
#fcdf42 on white: 1.33:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fcdf42 on black: 15.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red98.8%
Green87.5%
Blue25.9%
CMYK percentages
Cyan0.0%
Magenta11.5%
Yellow73.8%
Key (black)1.2%
Color previews
#fcdf42 text on a black background
contrast 15.77:1
Card sample
#fcdf42 text on a white background
contrast 1.33:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fcdf42;
Background color
Panel with #fcdf42 background
background-color: #fcdf42;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fcdf42;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(252, 223, 66, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 223, 66, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcdf42; background: linear-gradient(135deg, #fcdf42, #9DFC42);