Skip to content

#d4cd6f

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

RGB
212, 205, 111
HSL
56°, 54%, 63%
CMYK
0, 3, 48, 17
Luminance
0.5881

Every format

HEX#d4cd6f
RGBrgb(212, 205, 111)
HSLhsl(56, 54%, 63%)
CMYKcmyk(0%, 3%, 48%, 17%)
LABlab(81.2 -10.3 47.3)
LCHlch(81.2 48.5 102.3)
OKLCHoklch(0.834 0.117 104.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red83.1%
Green80.4%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta3.3%
Yellow47.6%
Key (black)16.9%

Color previews

#d4cd6f text on a black background

contrast 12.76:1

Card sample

#d4cd6f text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 205, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 205, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4cd6f;
background: linear-gradient(135deg, #d4cd6f, #98D46F);

Monochromatic scale

Palettes built from #d4cd6f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4cd6f in the Color Lab