Skip to content

#d2ba5f

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

RGB
210, 186, 95
HSL
48°, 56%, 60%
CMYK
0, 11, 55, 18
Luminance
0.4965

Every format

HEX#d2ba5f
RGBrgb(210, 186, 95)
HSLhsl(48, 56%, 60%)
CMYKcmyk(0%, 11%, 55%, 18%)
LABlab(75.8 -2.8 48.6)
LCHlch(75.8 48.7 93.3)
OKLCHoklch(0.791 0.115 94.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green72.9%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta11.4%
Yellow54.8%
Key (black)17.6%

Color previews

#d2ba5f text on a black background

contrast 10.93:1

Card sample

#d2ba5f text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2ba5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2ba5f in the Color Lab