#ffdf73
a light, electric yellow · cool · closest name: khaki
RGB
255, 223, 115
HSL
46°, 100%, 73%
CMYK
0, 13, 55, 0
Luminance
0.7527
Every format
| HEX | #ffdf73 |
| RGB | rgb(255, 223, 115) |
| HSL | hsl(46, 100%, 73%) |
| CMYK | cmyk(0%, 13%, 55%, 0%) |
| LAB | lab(89.5 -1.8 56.3) |
| LCH | lch(89.5 56.3 91.8) |
| OKLCH | oklch(0.909 0.132 93.1) |
Copy-ready code
/* CSS */
color: #ffdf73;
background-color: #ffdf73;
/* Tailwind (arbitrary) */
class="text-[#ffdf73] bg-[#ffdf73]"
/* SCSS */
$brand: #ffdf73;
/* SwiftUI */
Color(red: 1.000, green: 0.875, blue: 0.451)
/* Android */
Color.parseColor("#ffdf73")Accessibility — WCAG contrast
Aa
#ffdf73 on white: 1.31:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffdf73 on black: 16.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green87.5%
Blue45.1%
CMYK percentages
Cyan0.0%
Magenta12.5%
Yellow54.9%
Key (black)0.0%
Color previews
#ffdf73 text on a black background
contrast 16.05:1
Card sample
#ffdf73 text on a white background
contrast 1.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffdf73;
Background color
Panel with #ffdf73 background
background-color: #ffdf73;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffdf73;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 223, 115, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 223, 115, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffdf73; background: linear-gradient(135deg, #ffdf73, #C2FF73);