#fef080
a light, electric yellow · cool · closest name: khaki
RGB
254, 240, 128
HSL
53°, 98%, 75%
CMYK
0, 6, 50, 0
Luminance
0.8495
Every format
| HEX | #fef080 |
| RGB | rgb(254, 240, 128) |
| HSL | hsl(53, 98%, 75%) |
| CMYK | cmyk(0%, 6%, 50%, 0%) |
| LAB | lab(93.9 -9.6 55.3) |
| LCH | lch(93.9 56.2 99.8) |
| OKLCH | oklch(0.944 0.134 102.2) |
Copy-ready code
/* CSS */
color: #fef080;
background-color: #fef080;
/* Tailwind (arbitrary) */
class="text-[#fef080] bg-[#fef080]"
/* SCSS */
$brand: #fef080;
/* SwiftUI */
Color(red: 0.996, green: 0.941, blue: 0.502)
/* Android */
Color.parseColor("#fef080")Accessibility — WCAG contrast
Aa
#fef080 on white: 1.17:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#fef080 on black: 17.99:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red99.6%
Green94.1%
Blue50.2%
CMYK percentages
Cyan0.0%
Magenta5.5%
Yellow49.6%
Key (black)0.4%
Color previews
#fef080 text on a black background
contrast 17.99:1
Card sample
#fef080 text on a white background
contrast 1.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #fef080;
Background color
Panel with #fef080 background
background-color: #fef080;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #fef080;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(254, 240, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 240, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fef080; background: linear-gradient(135deg, #fef080, #B8FE80);