#dacf3b
a balanced, vivid yellow · cool · closest name: gold
RGB
218, 207, 59
HSL
56°, 68%, 54%
CMYK
0, 5, 73, 15
Luminance
0.5985
Every format
| HEX | #dacf3b |
| RGB | rgb(218, 207, 59) |
| HSL | hsl(56, 68%, 54%) |
| CMYK | cmyk(0%, 5%, 73%, 15%) |
| LAB | lab(81.8 -12.4 70.2) |
| LCH | lch(81.8 71.3 100.0) |
| OKLCH | oklch(0.839 0.160 105.0) |
Copy-ready code
/* CSS */
color: #dacf3b;
background-color: #dacf3b;
/* Tailwind (arbitrary) */
class="text-[#dacf3b] bg-[#dacf3b]"
/* SCSS */
$brand: #dacf3b;
/* SwiftUI */
Color(red: 0.855, green: 0.812, blue: 0.231)
/* Android */
Color.parseColor("#dacf3b")Accessibility — WCAG contrast
Aa
#dacf3b on white: 1.62:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#dacf3b on black: 12.97:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red85.5%
Green81.2%
Blue23.1%
CMYK percentages
Cyan0.0%
Magenta5.0%
Yellow72.9%
Key (black)14.5%
Color previews
#dacf3b text on a black background
contrast 12.97:1
Card sample
#dacf3b text on a white background
contrast 1.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #dacf3b;
Background color
Panel with #dacf3b background
background-color: #dacf3b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #dacf3b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(218, 207, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(218, 207, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dacf3b; background: linear-gradient(135deg, #dacf3b, #7BDA3B);