Skip to content

#d2af5f

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

RGB
210, 175, 95
HSL
42°, 56%, 60%
CMYK
0, 17, 55, 18
Luminance
0.4519

Every format

HEX#d2af5f
RGBrgb(210, 175, 95)
HSLhsl(42, 56%, 60%)
CMYKcmyk(0%, 17%, 55%, 18%)
LABlab(73.0 3.0 45.3)
LCHlch(73.0 45.4 86.2)
OKLCHoklch(0.769 0.107 86.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green68.6%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta16.7%
Yellow54.8%
Key (black)17.6%

Color previews

#d2af5f text on a black background

contrast 10.04:1

Card sample

#d2af5f text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2af5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2af5f in the Color Lab