Skip to content

#d2af4b

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

RGB
210, 175, 75
HSL
44°, 60%, 56%
CMYK
0, 17, 64, 18
Luminance
0.4487

Every format

HEX#d2af4b
RGBrgb(210, 175, 75)
HSLhsl(44, 60%, 56%)
CMYKcmyk(0%, 17%, 64%, 18%)
LABlab(72.8 1.6 54.5)
LCHlch(72.8 54.5 88.3)
OKLCHoklch(0.766 0.124 89.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green68.6%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta16.7%
Yellow64.3%
Key (black)17.6%

Color previews

#d2af4b text on a black background

contrast 9.97:1

Card sample

#d2af4b text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2af4b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2af4b in the Color Lab