Skip to content

#d2cf7f

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

RGB
210, 207, 127
HSL
58°, 48%, 66%
CMYK
0, 1, 40, 18
Luminance
0.5986

Every format

HEX#d2cf7f
RGBrgb(210, 207, 127)
HSLhsl(58, 48%, 66%)
CMYKcmyk(0%, 1%, 40%, 18%)
LABlab(81.8 -10.6 40.1)
LCHlch(81.8 41.5 104.8)
OKLCHoklch(0.839 0.102 106.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cf7f on white: 1.62:1
AA ✗ fail · AA-large · AAA
Aa
#d2cf7f on black: 12.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green81.2%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow39.5%
Key (black)17.6%

Color previews

#d2cf7f text on a black background

contrast 12.97:1

Card sample

#d2cf7f text on a white background

contrast 1.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cf7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cf7f in the Color Lab