#ffdf59
a light, electric yellow · cool · closest name: gold
RGB
255, 223, 89
HSL
48°, 100%, 68%
CMYK
0, 13, 65, 0
Luminance
0.7476
Every format
| HEX | #ffdf59 |
| RGB | rgb(255, 223, 89) |
| HSL | hsl(48, 100%, 68%) |
| CMYK | cmyk(0%, 13%, 65%, 0%) |
| LAB | lab(89.3 -3.5 67.4) |
| LCH | lch(89.3 67.5 93.0) |
| OKLCH | oklch(0.906 0.153 95.7) |
Copy-ready code
/* CSS */
color: #ffdf59;
background-color: #ffdf59;
/* Tailwind (arbitrary) */
class="text-[#ffdf59] bg-[#ffdf59]"
/* SCSS */
$brand: #ffdf59;
/* SwiftUI */
Color(red: 1.000, green: 0.875, blue: 0.349)
/* Android */
Color.parseColor("#ffdf59")Accessibility — WCAG contrast
Aa
#ffdf59 on white: 1.32:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffdf59 on black: 15.95:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green87.5%
Blue34.9%
CMYK percentages
Cyan0.0%
Magenta12.5%
Yellow65.1%
Key (black)0.0%
Color previews
#ffdf59 text on a black background
contrast 15.95:1
Card sample
#ffdf59 text on a white background
contrast 1.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffdf59;
Background color
Panel with #ffdf59 background
background-color: #ffdf59;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffdf59;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 223, 89, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 223, 89, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffdf59; background: linear-gradient(135deg, #ffdf59, #B1FF59);