Skip to content

#d4ba49

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

RGB
212, 186, 73
HSL
49°, 62%, 56%
CMYK
0, 12, 66, 17
Luminance
0.4960

Every format

HEX#d4ba49
RGBrgb(212, 186, 73)
HSLhsl(49, 62%, 56%)
CMYKcmyk(0%, 12%, 66%, 17%)
LABlab(75.8 -3.5 58.7)
LCHlch(75.8 58.8 93.4)
OKLCHoklch(0.790 0.134 96.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4ba49 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#d4ba49 on black: 10.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green72.9%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta12.3%
Yellow65.6%
Key (black)16.9%

Color previews

#d4ba49 text on a black background

contrast 10.92:1

Card sample

#d4ba49 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4ba49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4ba49 in the Color Lab