Skip to content

#d2bc2f

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

RGB
210, 188, 47
HSL
52°, 64%, 50%
CMYK
0, 11, 78, 18
Luminance
0.4987

Every format

HEX#d2bc2f
RGBrgb(210, 188, 47)
HSLhsl(52, 64%, 50%)
CMYKcmyk(0%, 11%, 78%, 18%)
LABlab(76.0 -6.6 68.5)
LCHlch(76.0 68.9 95.5)
OKLCHoklch(0.791 0.151 99.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2bc2f on white: 1.91:1
AA ✗ fail · AA-large · AAA
Aa
#d2bc2f on black: 10.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green73.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta10.5%
Yellow77.6%
Key (black)17.6%

Color previews

#d2bc2f text on a black background

contrast 10.97:1

Card sample

#d2bc2f text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2bc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2bc2f in the Color Lab