Skip to content

#d9cf21

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

RGB
217, 207, 33
HSL
57°, 74%, 49%
CMYK
0, 5, 85, 15
Luminance
0.5949

Every format

HEX#d9cf21
RGBrgb(217, 207, 33)
HSLhsl(57, 74%, 49%)
CMYKcmyk(0%, 5%, 85%, 15%)
LABlab(81.6 -13.7 77.3)
LCHlch(81.6 78.5 100.0)
OKLCHoklch(0.836 0.172 105.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9cf21 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#d9cf21 on black: 12.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green81.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta4.6%
Yellow84.8%
Key (black)14.9%

Color previews

#d9cf21 text on a black background

contrast 12.90:1

Card sample

#d9cf21 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d9cf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9cf21 in the Color Lab