#ffdf22
a balanced, electric yellow · cool · closest name: gold
RGB
255, 223, 34
HSL
51°, 100%, 57%
CMYK
0, 13, 87, 0
Luminance
0.7415
Every format
| HEX | #ffdf22 |
| RGB | rgb(255, 223, 34) |
| HSL | hsl(51, 100%, 57%) |
| CMYK | cmyk(0%, 13%, 87%, 0%) |
| LAB | lab(89.0 -5.5 84.5) |
| LCH | lch(89.0 84.7 93.8) |
| OKLCH | oklch(0.903 0.181 98.2) |
Copy-ready code
/* CSS */
color: #ffdf22;
background-color: #ffdf22;
/* Tailwind (arbitrary) */
class="text-[#ffdf22] bg-[#ffdf22]"
/* SCSS */
$brand: #ffdf22;
/* SwiftUI */
Color(red: 1.000, green: 0.875, blue: 0.133)
/* Android */
Color.parseColor("#ffdf22")Accessibility — WCAG contrast
Aa
#ffdf22 on white: 1.33:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffdf22 on black: 15.83:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green87.5%
Blue13.3%
CMYK percentages
Cyan0.0%
Magenta12.5%
Yellow86.7%
Key (black)0.0%
Color previews
#ffdf22 text on a black background
contrast 15.83:1
Card sample
#ffdf22 text on a white background
contrast 1.33:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffdf22;
Background color
Panel with #ffdf22 background
background-color: #ffdf22;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffdf22;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 223, 34, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 223, 34, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffdf22; background: linear-gradient(135deg, #ffdf22, #8CFF22);