Skip to content

#d4cb49

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

RGB
212, 203, 73
HSL
56°, 62%, 56%
CMYK
0, 4, 66, 17
Luminance
0.5719

Every format

HEX#d4cb49
RGBrgb(212, 203, 73)
HSLhsl(56, 62%, 56%)
CMYKcmyk(0%, 4%, 66%, 17%)
LABlab(80.3 -12.2 63.4)
LCHlch(80.3 64.5 100.9)
OKLCHoklch(0.826 0.148 105.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4cb49 on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#d4cb49 on black: 12.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green79.6%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta4.2%
Yellow65.6%
Key (black)16.9%

Color previews

#d4cb49 text on a black background

contrast 12.44:1

Card sample

#d4cb49 text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 203, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 203, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d4cb49;
background: linear-gradient(135deg, #d4cb49, #80D449);

Monochromatic scale

Palettes built from #d4cb49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4cb49 in the Color Lab