Skip to content

#d4cf5f

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

RGB
212, 207, 95
HSL
57°, 58%, 60%
CMYK
0, 2, 55, 17
Luminance
0.5945

Every format

HEX#d4cf5f
RGBrgb(212, 207, 95)
HSLhsl(57, 58%, 60%)
CMYKcmyk(0%, 2%, 55%, 17%)
LABlab(81.5 -12.7 55.3)
LCHlch(81.5 56.7 103.0)
OKLCHoklch(0.836 0.134 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red83.1%
Green81.2%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow55.2%
Key (black)16.9%

Color previews

#d4cf5f text on a black background

contrast 12.89:1

Card sample

#d4cf5f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 207, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 207, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4cf5f;
background: linear-gradient(135deg, #d4cf5f, #8BD45F);

Monochromatic scale

Palettes built from #d4cf5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4cf5f in the Color Lab