Skip to content

#d2ae2f

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

RGB
210, 174, 47
HSL
47°, 64%, 50%
CMYK
0, 17, 78, 18
Luminance
0.4418

Every format

HEX#d2ae2f
RGBrgb(210, 174, 47)
HSLhsl(47, 64%, 50%)
CMYKcmyk(0%, 17%, 78%, 18%)
LABlab(72.3 0.7 65.2)
LCHlch(72.3 65.2 89.4)
OKLCHoklch(0.762 0.142 92.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2ae2f on white: 2.14:1
AA ✗ fail · AA-large · AAA
Aa
#d2ae2f on black: 9.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green68.2%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta17.1%
Yellow77.6%
Key (black)17.6%

Color previews

#d2ae2f text on a black background

contrast 9.84:1

Card sample

#d2ae2f text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 174, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 174, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2ae2f;
background: linear-gradient(135deg, #d2ae2f, #89D22F);

Monochromatic scale

Palettes built from #d2ae2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2ae2f in the Color Lab