Skip to content

#d9c721

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

RGB
217, 199, 33
HSL
54°, 74%, 49%
CMYK
0, 8, 85, 15
Luminance
0.5571

Every format

HEX#d9c721
RGBrgb(217, 199, 33)
HSLhsl(54, 74%, 49%)
CMYKcmyk(0%, 8%, 85%, 15%)
LABlab(79.5 -9.6 75.6)
LCHlch(79.5 76.2 97.3)
OKLCHoklch(0.820 0.165 102.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9c721 on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#d9c721 on black: 12.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green78.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta8.3%
Yellow84.8%
Key (black)14.9%

Color previews

#d9c721 text on a black background

contrast 12.14:1

Card sample

#d9c721 text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d9c721

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9c721 in the Color Lab