Skip to content

#d2af3c

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

RGB
210, 175, 60
HSL
46°, 63%, 53%
CMYK
0, 17, 71, 18
Luminance
0.4469

Every format

HEX#d2af3c
RGBrgb(210, 175, 60)
HSLhsl(46, 63%, 53%)
CMYKcmyk(0%, 17%, 71%, 18%)
LABlab(72.7 0.8 60.8)
LCHlch(72.7 60.8 89.3)
OKLCHoklch(0.765 0.135 91.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green68.6%
Blue23.5%

CMYK percentages

Cyan0.0%
Magenta16.7%
Yellow71.4%
Key (black)17.6%

Color previews

#d2af3c text on a black background

contrast 9.94:1

Card sample

#d2af3c text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 175, 60, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 175, 60, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2af3c;
background: linear-gradient(135deg, #d2af3c, #91D23C);

Monochromatic scale

Palettes built from #d2af3c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2af3c in the Color Lab