Skip to content

#d2bc21

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

RGB
210, 188, 33
HSL
53°, 73%, 48%
CMYK
0, 11, 84, 18
Luminance
0.4978

Every format

HEX#d2bc21
RGBrgb(210, 188, 33)
HSLhsl(53, 73%, 48%)
CMYKcmyk(0%, 11%, 84%, 18%)
LABlab(75.9 -7.0 72.4)
LCHlch(75.9 72.8 95.6)
OKLCHoklch(0.790 0.157 100.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red82.4%
Green73.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta10.5%
Yellow84.3%
Key (black)17.6%

Color previews

#d2bc21 text on a black background

contrast 10.96:1

Card sample

#d2bc21 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2bc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2bc21 in the Color Lab