Skip to content

#dac40c

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

RGB
218, 196, 12
HSL
54°, 90%, 45%
CMYK
0, 10, 95, 15
Luminance
0.5441

Every format

HEX#dac40c
RGBrgb(218, 196, 12)
HSLhsl(54, 90%, 45%)
CMYKcmyk(0%, 10%, 95%, 15%)
LABlab(78.7 -8.0 78.5)
LCHlch(78.7 78.9 95.8)
OKLCHoklch(0.814 0.168 101.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dac40c on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#dac40c on black: 11.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.5%
Green76.9%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta10.1%
Yellow94.5%
Key (black)14.5%

Color previews

#dac40c text on a black background

contrast 11.88:1

Card sample

#dac40c text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dac40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dac40c in the Color Lab