Skip to content

#d4af39

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

RGB
212, 175, 57
HSL
46°, 64%, 53%
CMYK
0, 18, 73, 17
Luminance
0.4495

Every format

HEX#d4af39
RGBrgb(212, 175, 57)
HSLhsl(46, 64%, 53%)
CMYKcmyk(0%, 18%, 73%, 17%)
LABlab(72.9 1.5 62.2)
LCHlch(72.9 62.2 88.6)
OKLCHoklch(0.767 0.138 90.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4af39 on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#d4af39 on black: 9.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green68.6%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta17.5%
Yellow73.1%
Key (black)16.9%

Color previews

#d4af39 text on a black background

contrast 9.99:1

Card sample

#d4af39 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4af39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4af39 in the Color Lab