Skip to content

#d2cc6f

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

RGB
210, 204, 111
HSL
56°, 52%, 63%
CMYK
0, 3, 47, 18
Luminance
0.5804

Every format

HEX#d2cc6f
RGBrgb(210, 204, 111)
HSLhsl(56, 52%, 63%)
CMYKcmyk(0%, 3%, 47%, 18%)
LABlab(80.8 -10.7 46.8)
LCHlch(80.8 48.0 102.8)
OKLCHoklch(0.830 0.116 105.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cc6f on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#d2cc6f on black: 12.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green80.0%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow47.1%
Key (black)17.6%

Color previews

#d2cc6f text on a black background

contrast 12.61:1

Card sample

#d2cc6f text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cc6f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cc6f in the Color Lab