Skip to content

#d2cf5c

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

RGB
210, 207, 92
HSL
59°, 57%, 59%
CMYK
0, 1, 56, 18
Luminance
0.5910

Every format

HEX#d2cf5c
RGBrgb(210, 207, 92)
HSLhsl(59, 57%, 59%)
CMYKcmyk(0%, 1%, 56%, 18%)
LABlab(81.3 -13.8 56.4)
LCHlch(81.3 58.0 103.7)
OKLCHoklch(0.834 0.137 107.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cf5c on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#d2cf5c on black: 12.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green81.2%
Blue36.1%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow56.2%
Key (black)17.6%

Color previews

#d2cf5c text on a black background

contrast 12.82:1

Card sample

#d2cf5c text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cf5c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cf5c in the Color Lab