#dfba40
a balanced, vivid yellow · cool · closest name: khaki
RGB
223, 186, 64
HSL
46°, 71%, 56%
CMYK
0, 17, 71, 13
Luminance
0.5118
Every format
| HEX | #dfba40 |
| RGB | rgb(223, 186, 64) |
| HSL | hsl(46, 71%, 56%) |
| CMYK | cmyk(0%, 17%, 71%, 13%) |
| LAB | lab(76.8 0.8 63.7) |
| LCH | lch(76.8 63.7 89.3) |
| OKLCH | oklch(0.800 0.142 91.6) |
Copy-ready code
/* CSS */
color: #dfba40;
background-color: #dfba40;
/* Tailwind (arbitrary) */
class="text-[#dfba40] bg-[#dfba40]"
/* SCSS */
$brand: #dfba40;
/* SwiftUI */
Color(red: 0.875, green: 0.729, blue: 0.251)
/* Android */
Color.parseColor("#dfba40")Accessibility — WCAG contrast
Aa
#dfba40 on white: 1.87:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#dfba40 on black: 11.24:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.5%
Green72.9%
Blue25.1%
CMYK percentages
Cyan0.0%
Magenta16.6%
Yellow71.3%
Key (black)12.5%
Color previews
#dfba40 text on a black background
contrast 11.24:1
Card sample
#dfba40 text on a white background
contrast 1.87:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #dfba40;
Background color
Panel with #dfba40 background
background-color: #dfba40;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #dfba40;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(223, 186, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 186, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfba40; background: linear-gradient(135deg, #dfba40, #9ADF40);