Skip to content

#d9cf2f

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

RGB
217, 207, 47
HSL
57°, 69%, 52%
CMYK
0, 5, 78, 15
Luminance
0.5958

Every format

HEX#d9cf2f
RGBrgb(217, 207, 47)
HSLhsl(57, 69%, 52%)
CMYKcmyk(0%, 5%, 78%, 15%)
LABlab(81.6 -13.3 73.8)
LCHlch(81.6 75.0 100.2)
OKLCHoklch(0.837 0.166 105.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red85.1%
Green81.2%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta4.6%
Yellow78.3%
Key (black)14.9%

Color previews

#d9cf2f text on a black background

contrast 12.92:1

Card sample

#d9cf2f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d9cf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9cf2f in the Color Lab