Skip to content

#d2c721

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

RGB
210, 199, 33
HSL
56°, 73%, 48%
CMYK
0, 5, 84, 18
Luminance
0.5466

Every format

HEX#d2c721
RGBrgb(210, 199, 33)
HSLhsl(56, 73%, 48%)
CMYKcmyk(0%, 5%, 84%, 18%)
LABlab(78.8 -12.7 74.8)
LCHlch(78.8 75.9 99.6)
OKLCHoklch(0.813 0.166 105.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2c721 on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#d2c721 on black: 11.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green78.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.2%
Yellow84.3%
Key (black)17.6%

Color previews

#d2c721 text on a black background

contrast 11.93:1

Card sample

#d2c721 text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2c721

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2c721 in the Color Lab