Skip to content

#d9da21

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

RGB
217, 218, 33
HSL
60°, 74%, 49%
CMYK
1, 0, 85, 15
Luminance
0.6500

Every format

HEX#d9da21
RGBrgb(217, 218, 33)
HSLhsl(60, 74%, 49%)
CMYKcmyk(1%, 0%, 85%, 15%)
LABlab(84.5 -19.1 79.7)
LCHlch(84.5 82.0 103.5)
OKLCHoklch(0.860 0.181 110.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9da21 on white: 1.50:1
AA ✗ fail · AA-large · AAA
Aa
#d9da21 on black: 14.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green85.5%
Blue12.9%

CMYK percentages

Cyan0.5%
Magenta0.0%
Yellow84.9%
Key (black)14.5%

Color previews

#d9da21 text on a black background

contrast 14.00:1

Card sample

#d9da21 text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d9da21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9da21 in the Color Lab