Skip to content

#d4ab2f

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

RGB
212, 171, 47
HSL
45°, 66%, 51%
CMYK
0, 19, 78, 17
Luminance
0.4333

Every format

HEX#d4ab2f
RGBrgb(212, 171, 47)
HSLhsl(45, 66%, 51%)
CMYKcmyk(0%, 19%, 78%, 17%)
LABlab(71.8 3.2 64.8)
LCHlch(71.8 64.9 87.2)
OKLCHoklch(0.758 0.141 89.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4ab2f on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#d4ab2f on black: 9.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan0.0%
Magenta19.3%
Yellow77.8%
Key (black)16.9%

Color previews

#d4ab2f text on a black background

contrast 9.67:1

Card sample

#d4ab2f text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4ab2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4ab2f in the Color Lab