#ffdf50
a light, electric yellow · cool · closest name: gold
RGB
255, 223, 80
HSL
49°, 100%, 66%
CMYK
0, 13, 69, 0
Luminance
0.7461
Every format
| HEX | #ffdf50 |
| RGB | rgb(255, 223, 80) |
| HSL | hsl(49, 100%, 66%) |
| CMYK | cmyk(0%, 13%, 69%, 0%) |
| LAB | lab(89.2 -4.0 70.9) |
| LCH | lch(89.2 71.0 93.2) |
| OKLCH | oklch(0.906 0.160 96.3) |
Copy-ready code
/* CSS */
color: #ffdf50;
background-color: #ffdf50;
/* Tailwind (arbitrary) */
class="text-[#ffdf50] bg-[#ffdf50]"
/* SCSS */
$brand: #ffdf50;
/* SwiftUI */
Color(red: 1.000, green: 0.875, blue: 0.314)
/* Android */
Color.parseColor("#ffdf50")Accessibility — WCAG contrast
Aa
#ffdf50 on white: 1.32:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffdf50 on black: 15.92:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green87.5%
Blue31.4%
CMYK percentages
Cyan0.0%
Magenta12.5%
Yellow68.6%
Key (black)0.0%
Color previews
#ffdf50 text on a black background
contrast 15.92:1
Card sample
#ffdf50 text on a white background
contrast 1.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffdf50;
Background color
Panel with #ffdf50 background
background-color: #ffdf50;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffdf50;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 223, 80, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 223, 80, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffdf50; background: linear-gradient(135deg, #ffdf50, #AAFF50);