#fef02c
a balanced, electric yellow · cool · closest name: yellow
RGB
254, 240, 44
HSL
56°, 99%, 58%
CMYK
0, 6, 83, 0
Luminance
0.8357
Every format
| HEX | #fef02c |
| RGB | rgb(254, 240, 44) |
| HSL | hsl(56, 99%, 58%) |
| CMYK | cmyk(0%, 6%, 83%, 0%) |
| LAB | lab(93.3 -14.2 85.8) |
| LCH | lch(93.3 87.0 99.4) |
| OKLCH | oklch(0.937 0.190 105.0) |
Copy-ready code
/* CSS */
color: #fef02c;
background-color: #fef02c;
/* Tailwind (arbitrary) */
class="text-[#fef02c] bg-[#fef02c]"
/* SCSS */
$brand: #fef02c;
/* SwiftUI */
Color(red: 0.996, green: 0.941, blue: 0.173)
/* Android */
Color.parseColor("#fef02c")Accessibility — WCAG contrast
Aa
#fef02c on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fef02c on black: 17.71:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.6%
Green94.1%
Blue17.3%
CMYK percentages
Cyan0.0%
Magenta5.5%
Yellow82.7%
Key (black)0.4%
Color previews
#fef02c text on a black background
contrast 17.71:1
Card sample
#fef02c text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fef02c;
Background color
Panel with #fef02c background
background-color: #fef02c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fef02c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(254, 240, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 240, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fef02c; background: linear-gradient(135deg, #fef02c, #80FE2C);