Skip to content

#dacf0c

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

RGB
218, 207, 12
HSL
57°, 90%, 45%
CMYK
0, 5, 95, 15
Luminance
0.5956

Every format

HEX#dacf0c
RGBrgb(218, 207, 12)
HSLhsl(57, 90%, 45%)
CMYKcmyk(0%, 5%, 95%, 15%)
LABlab(81.6 -13.6 80.7)
LCHlch(81.6 81.8 99.6)
OKLCHoklch(0.837 0.177 105.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dacf0c on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#dacf0c on black: 12.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green81.2%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta5.0%
Yellow94.5%
Key (black)14.5%

Color previews

#dacf0c text on a black background

contrast 12.91:1

Card sample

#dacf0c text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dacf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dacf0c in the Color Lab