Skip to content

#d9af2f

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

RGB
217, 175, 47
HSL
45°, 69%, 52%
CMYK
0, 19, 78, 15
Luminance
0.4562

Every format

HEX#d9af2f
RGBrgb(217, 175, 47)
HSLhsl(45, 69%, 52%)
CMYKcmyk(0%, 19%, 78%, 15%)
LABlab(73.3 3.2 66.3)
LCHlch(73.3 66.4 87.2)
OKLCHoklch(0.771 0.144 89.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9af2f on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#d9af2f on black: 10.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green68.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta19.4%
Yellow78.3%
Key (black)14.9%

Color previews

#d9af2f text on a black background

contrast 10.12:1

Card sample

#d9af2f text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(217, 175, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(217, 175, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d9af2f;
background: linear-gradient(135deg, #d9af2f, #92D92F);

Monochromatic scale

Palettes built from #d9af2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9af2f in the Color Lab