Skip to content

#d4af2d

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

RGB
212, 175, 45
HSL
47°, 66%, 50%
CMYK
0, 18, 79, 17
Luminance
0.4485

Every format

HEX#d4af2d
RGBrgb(212, 175, 45)
HSLhsl(47, 66%, 50%)
CMYKcmyk(0%, 18%, 79%, 17%)
LABlab(72.8 1.0 66.4)
LCHlch(72.8 66.4 89.2)
OKLCHoklch(0.766 0.144 91.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4af2d on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#d4af2d on black: 9.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green68.6%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta17.5%
Yellow78.8%
Key (black)16.9%

Color previews

#d4af2d text on a black background

contrast 9.97:1

Card sample

#d4af2d text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 175, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 175, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4af2d;
background: linear-gradient(135deg, #d4af2d, #8AD42D);

Monochromatic scale

Palettes built from #d4af2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4af2d in the Color Lab