Skip to content

#d2bc4f

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

RGB
210, 188, 79
HSL
50°, 59%, 57%
CMYK
0, 11, 62, 18
Luminance
0.5023

Every format

HEX#d2bc4f
RGBrgb(210, 188, 79)
HSLhsl(50, 59%, 57%)
CMYKcmyk(0%, 11%, 62%, 18%)
LABlab(76.2 -5.0 56.5)
LCHlch(76.2 56.7 95.0)
OKLCHoklch(0.793 0.130 97.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2bc4f on white: 1.90:1
AA ✗ fail · AA-large · AAA
Aa
#d2bc4f on black: 11.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green73.7%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta10.5%
Yellow62.4%
Key (black)17.6%

Color previews

#d2bc4f text on a black background

contrast 11.05:1

Card sample

#d2bc4f text on a white background

contrast 1.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 188, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 188, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2bc4f;
background: linear-gradient(135deg, #d2bc4f, #91D24F);

Monochromatic scale

Palettes built from #d2bc4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2bc4f in the Color Lab