Skip to content

#d9cd49

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

RGB
217, 205, 73
HSL
55°, 66%, 57%
CMYK
0, 6, 66, 15
Luminance
0.5890

Every format

HEX#d9cd49
RGBrgb(217, 205, 73)
HSLhsl(55, 66%, 57%)
CMYKcmyk(0%, 6%, 66%, 15%)
LABlab(81.2 -11.1 64.5)
LCHlch(81.2 65.4 99.8)
OKLCHoklch(0.834 0.149 104.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9cd49 on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#d9cd49 on black: 12.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green80.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow66.4%
Key (black)14.9%

Color previews

#d9cd49 text on a black background

contrast 12.78:1

Card sample

#d9cd49 text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(217, 205, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(217, 205, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d9cd49;
background: linear-gradient(135deg, #d9cd49, #85D949);

Monochromatic scale

Palettes built from #d9cd49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9cd49 in the Color Lab