Skip to content

#d2c76f

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

RGB
210, 199, 111
HSL
53°, 52%, 63%
CMYK
0, 5, 47, 18
Luminance
0.5570

Every format

HEX#d2c76f
RGBrgb(210, 199, 111)
HSLhsl(53, 52%, 63%)
CMYKcmyk(0%, 5%, 47%, 18%)
LABlab(79.4 -8.1 45.2)
LCHlch(79.4 45.9 100.2)
OKLCHoklch(0.820 0.111 102.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2c76f on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#d2c76f on black: 12.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green78.0%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta5.2%
Yellow47.1%
Key (black)17.6%

Color previews

#d2c76f text on a black background

contrast 12.14:1

Card sample

#d2c76f text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2c76f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2c76f in the Color Lab