#fef049
a balanced, electric yellow · cool · closest name: gold
RGB
254, 240, 73
HSL
55°, 99%, 64%
CMYK
0, 6, 71, 0
Luminance
0.8387
Every format
| HEX | #fef049 |
| RGB | rgb(254, 240, 73) |
| HSL | hsl(55, 99%, 64%) |
| CMYK | cmyk(0%, 6%, 71%, 0%) |
| LAB | lab(93.4 -13.1 77.6) |
| LCH | lch(93.4 78.7 99.6) |
| OKLCH | oklch(0.939 0.177 104.5) |
Copy-ready code
/* CSS */
color: #fef049;
background-color: #fef049;
/* Tailwind (arbitrary) */
class="text-[#fef049] bg-[#fef049]"
/* SCSS */
$brand: #fef049;
/* SwiftUI */
Color(red: 0.996, green: 0.941, blue: 0.286)
/* Android */
Color.parseColor("#fef049")Accessibility — WCAG contrast
Aa
#fef049 on white: 1.18:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fef049 on black: 17.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.6%
Green94.1%
Blue28.6%
CMYK percentages
Cyan0.0%
Magenta5.5%
Yellow71.3%
Key (black)0.4%
Color previews
#fef049 text on a black background
contrast 17.77:1
Card sample
#fef049 text on a white background
contrast 1.18:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fef049;
Background color
Panel with #fef049 background
background-color: #fef049;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fef049;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(254, 240, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 240, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fef049; background: linear-gradient(135deg, #fef049, #93FE49);