Skip to content

#dacf21

a balanced, vivid yellow · cool · closest name: gold

RGB
218, 207, 33
HSL
56°, 74%, 49%
CMYK
0, 5, 85, 15
Luminance
0.5964

Every format

HEX#dacf21
RGBrgb(218, 207, 33)
HSLhsl(56, 74%, 49%)
CMYKcmyk(0%, 5%, 85%, 15%)
LABlab(81.6 -13.3 77.4)
LCHlch(81.6 78.5 99.7)
OKLCHoklch(0.837 0.172 105.5)

Copy-ready code

/* CSS */
color: #dacf21;
background-color: #dacf21;
/* Tailwind (arbitrary) */
class="text-[#dacf21] bg-[#dacf21]"
/* SCSS */
$brand: #dacf21;
/* SwiftUI */
Color(red: 0.855, green: 0.812, blue: 0.129)
/* Android */
Color.parseColor("#dacf21")

Accessibility — WCAG contrast

Aa
#dacf21 on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#dacf21 on black: 12.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green81.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.0%
Yellow84.9%
Key (black)14.5%

Color previews

#dacf21 text on a black background

contrast 12.93:1

Card sample

#dacf21 text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #dacf21;
Background color
Panel with #dacf21 background
background-color: #dacf21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #dacf21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(218, 207, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(218, 207, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dacf21;
background: linear-gradient(135deg, #dacf21, #6ADA21);

Monochromatic scale

Palettes built from #dacf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dacf21 in the Color Lab