Skip to content

#d4ba3f

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

RGB
212, 186, 63
HSL
50°, 63%, 54%
CMYK
0, 12, 70, 17
Luminance
0.4947

Every format

HEX#d4ba3f
RGBrgb(212, 186, 63)
HSLhsl(50, 63%, 54%)
CMYKcmyk(0%, 12%, 70%, 17%)
LABlab(75.8 -4.0 62.7)
LCHlch(75.8 62.8 93.7)
OKLCHoklch(0.790 0.141 97.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4ba3f on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#d4ba3f on black: 10.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green72.9%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta12.3%
Yellow70.3%
Key (black)16.9%

Color previews

#d4ba3f text on a black background

contrast 10.89:1

Card sample

#d4ba3f text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4ba3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4ba3f in the Color Lab