Skip to content

#d2cc7f

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

RGB
210, 204, 127
HSL
56°, 48%, 66%
CMYK
0, 3, 40, 18
Luminance
0.5842

Every format

HEX#d2cc7f
RGBrgb(210, 204, 127)
HSLhsl(56, 48%, 66%)
CMYKcmyk(0%, 3%, 40%, 18%)
LABlab(81.0 -9.0 39.1)
LCHlch(81.0 40.1 103.0)
OKLCHoklch(0.833 0.099 104.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green80.0%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow39.5%
Key (black)17.6%

Color previews

#d2cc7f text on a black background

contrast 12.68:1

Card sample

#d2cc7f text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cc7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cc7f in the Color Lab