Skip to content

#d1af49

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

RGB
209, 175, 73
HSL
45°, 60%, 55%
CMYK
0, 16, 65, 18
Luminance
0.4470

Every format

HEX#d1af49
RGBrgb(209, 175, 73)
HSLhsl(45, 60%, 55%)
CMYKcmyk(0%, 16%, 65%, 18%)
LABlab(72.7 1.0 55.3)
LCHlch(72.7 55.3 88.9)
OKLCHoklch(0.765 0.126 90.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.0%
Green68.6%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta16.3%
Yellow65.1%
Key (black)18.0%

Color previews

#d1af49 text on a black background

contrast 9.94:1

Card sample

#d1af49 text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(209, 175, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(209, 175, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d1af49;
background: linear-gradient(135deg, #d1af49, #98D149);

Monochromatic scale

Palettes built from #d1af49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d1af49 in the Color Lab