#dfbc28
a balanced, vivid yellow · cool · closest name: gold
RGB
223, 188, 40
HSL
49°, 74%, 52%
CMYK
0, 16, 82, 13
Luminance
0.5181
Every format
| HEX | #dfbc28 |
| RGB | rgb(223, 188, 40) |
| HSL | hsl(49, 74%, 52%) |
| CMYK | cmyk(0%, 16%, 82%, 13%) |
| LAB | lab(77.2 -1.2 72.1) |
| LCH | lch(77.2 72.1 91.0) |
| OKLCH | oklch(0.803 0.155 94.4) |
Copy-ready code
/* CSS */
color: #dfbc28;
background-color: #dfbc28;
/* Tailwind (arbitrary) */
class="text-[#dfbc28] bg-[#dfbc28]"
/* SCSS */
$brand: #dfbc28;
/* SwiftUI */
Color(red: 0.875, green: 0.737, blue: 0.157)
/* Android */
Color.parseColor("#dfbc28")Accessibility — WCAG contrast
Aa
#dfbc28 on white: 1.85:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#dfbc28 on black: 11.36:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.5%
Green73.7%
Blue15.7%
CMYK percentages
Cyan0.0%
Magenta15.7%
Yellow82.1%
Key (black)12.5%
Color previews
#dfbc28 text on a black background
contrast 11.36:1
Card sample
#dfbc28 text on a white background
contrast 1.85:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #dfbc28;
Background color
Panel with #dfbc28 background
background-color: #dfbc28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #dfbc28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(223, 188, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 188, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfbc28; background: linear-gradient(135deg, #dfbc28, #88DF28);