Skip to content

#d2cc9f

a light, soft yellow · cool · closest name: tan

RGB
210, 204, 159
HSL
53°, 36%, 72%
CMYK
0, 3, 24, 18
Luminance
0.5939

Every format

HEX#d2cc9f
RGBrgb(210, 204, 159)
HSLhsl(53, 36%, 72%)
CMYKcmyk(0%, 3%, 24%, 18%)
LABlab(81.5 -5.1 23.2)
LCHlch(81.5 23.8 102.3)
OKLCHoklch(0.839 0.060 101.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cc9f on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#d2cc9f on black: 12.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green80.0%
Blue62.4%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow24.3%
Key (black)17.6%

Color previews

#d2cc9f text on a black background

contrast 12.88:1

Card sample

#d2cc9f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cc9f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cc9f in the Color Lab