Skip to content

#d2af5d

a balanced, vivid yellow · warm · closest name: khaki

RGB
210, 175, 93
HSL
42°, 57%, 59%
CMYK
0, 17, 56, 18
Luminance
0.4515

Every format

HEX#d2af5d
RGBrgb(210, 175, 93)
HSLhsl(42, 57%, 59%)
CMYKcmyk(0%, 17%, 56%, 18%)
LABlab(73.0 2.9 46.3)
LCHlch(73.0 46.4 86.5)
OKLCHoklch(0.768 0.109 86.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2af5d on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#d2af5d on black: 10.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green68.6%
Blue36.5%

CMYK percentages

Cyan0.0%
Magenta16.7%
Yellow55.7%
Key (black)17.6%

Color previews

#d2af5d text on a black background

contrast 10.03:1

Card sample

#d2af5d text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2af5d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2af5d in the Color Lab