Skip to content

#d2cd5f

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

RGB
210, 205, 95
HSL
57°, 56%, 60%
CMYK
0, 2, 55, 18
Luminance
0.5819

Every format

HEX#d2cd5f
RGBrgb(210, 205, 95)
HSLhsl(57, 56%, 60%)
CMYKcmyk(0%, 2%, 55%, 18%)
LABlab(80.8 -12.5 54.4)
LCHlch(80.8 55.9 103.0)
OKLCHoklch(0.831 0.132 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cd5f on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#d2cd5f on black: 12.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green80.4%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow54.8%
Key (black)17.6%

Color previews

#d2cd5f text on a black background

contrast 12.64:1

Card sample

#d2cd5f text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 205, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 205, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cd5f;
background: linear-gradient(135deg, #d2cd5f, #8AD25F);

Monochromatic scale

Palettes built from #d2cd5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cd5f in the Color Lab