#dacc21
a balanced, vivid yellow · cool · closest name: gold
RGB
218, 204, 33
HSL
56°, 74%, 49%
CMYK
0, 6, 85, 15
Luminance
0.5820
Every format
| HEX | #dacc21 |
| RGB | rgb(218, 204, 33) |
| HSL | hsl(56, 74%, 49%) |
| CMYK | cmyk(0%, 6%, 85%, 15%) |
| LAB | lab(80.8 -11.7 76.8) |
| LCH | lch(80.8 77.7 98.7) |
| OKLCH | oklch(0.831 0.169 104.3) |
Copy-ready code
/* CSS */
color: #dacc21;
background-color: #dacc21;
/* Tailwind (arbitrary) */
class="text-[#dacc21] bg-[#dacc21]"
/* SCSS */
$brand: #dacc21;
/* SwiftUI */
Color(red: 0.855, green: 0.800, blue: 0.129)
/* Android */
Color.parseColor("#dacc21")Accessibility — WCAG contrast
Aa
#dacc21 on white: 1.66:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#dacc21 on black: 12.64:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red85.5%
Green80.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta6.4%
Yellow84.9%
Key (black)14.5%
Color previews
#dacc21 text on a black background
contrast 12.64:1
Card sample
#dacc21 text on a white background
contrast 1.66:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #dacc21;
Background color
Panel with #dacc21 background
background-color: #dacc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #dacc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(218, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(218, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dacc21; background: linear-gradient(135deg, #dacc21, #6DDA21);