Skip to content

#d4bf3f

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

RGB
212, 191, 63
HSL
52°, 63%, 54%
CMYK
0, 10, 70, 17
Luminance
0.5162

Every format

HEX#d4bf3f
RGBrgb(212, 191, 63)
HSLhsl(52, 63%, 54%)
CMYKcmyk(0%, 10%, 70%, 17%)
LABlab(77.0 -6.6 64.0)
LCHlch(77.0 64.3 95.9)
OKLCHoklch(0.800 0.144 99.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4bf3f on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#d4bf3f on black: 11.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green74.9%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta9.9%
Yellow70.3%
Key (black)16.9%

Color previews

#d4bf3f text on a black background

contrast 11.32:1

Card sample

#d4bf3f text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4bf3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4bf3f in the Color Lab