Skip to content

#d9a621

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

RGB
217, 166, 33
HSL
43°, 74%, 49%
CMYK
0, 24, 85, 15
Luminance
0.4213

Every format

HEX#d9a621
RGBrgb(217, 166, 33)
HSLhsl(43, 74%, 49%)
CMYKcmyk(0%, 24%, 85%, 15%)
LABlab(71.0 7.6 68.6)
LCHlch(71.0 69.0 83.7)
OKLCHoklch(0.752 0.146 85.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9a621 on white: 2.23:1
AA ✗ fail · AA-large · AAA
Aa
#d9a621 on black: 9.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green65.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta23.5%
Yellow84.8%
Key (black)14.9%

Color previews

#d9a621 text on a black background

contrast 9.43:1

Card sample

#d9a621 text on a white background

contrast 2.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(217, 166, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(217, 166, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d9a621;
background: linear-gradient(135deg, #d9a621, #91D921);

Monochromatic scale

Palettes built from #d9a621

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9a621 in the Color Lab