Skip to content

#d8cd49

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

RGB
216, 205, 73
HSL
55°, 65%, 57%
CMYK
0, 5, 66, 15
Luminance
0.5874

Every format

HEX#d8cd49
RGBrgb(216, 205, 73)
HSLhsl(55, 65%, 57%)
CMYKcmyk(0%, 5%, 66%, 15%)
LABlab(81.2 -11.5 64.4)
LCHlch(81.2 65.4 100.1)
OKLCHoklch(0.834 0.149 104.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d8cd49 on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#d8cd49 on black: 12.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.7%
Green80.4%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow66.2%
Key (black)15.3%

Color previews

#d8cd49 text on a black background

contrast 12.75:1

Card sample

#d8cd49 text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d8cd49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d8cd49 in the Color Lab