Skip to content

#d4ac2f

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

RGB
212, 172, 47
HSL
46°, 66%, 51%
CMYK
0, 19, 78, 17
Luminance
0.4371

Every format

HEX#d4ac2f
RGBrgb(212, 172, 47)
HSLhsl(46, 66%, 51%)
CMYKcmyk(0%, 19%, 78%, 17%)
LABlab(72.0 2.6 65.0)
LCHlch(72.0 65.1 87.7)
OKLCHoklch(0.760 0.141 89.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4ac2f on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#d4ac2f on black: 9.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green67.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta18.9%
Yellow77.8%
Key (black)16.9%

Color previews

#d4ac2f text on a black background

contrast 9.74:1

Card sample

#d4ac2f text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4ac2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4ac2f in the Color Lab