Skip to content

#d7bc21

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

RGB
215, 188, 33
HSL
51°, 73%, 49%
CMYK
0, 13, 85, 16
Luminance
0.5052

Every format

HEX#d7bc21
RGBrgb(215, 188, 33)
HSLhsl(51, 73%, 49%)
CMYKcmyk(0%, 13%, 85%, 16%)
LABlab(76.4 -4.9 73.0)
LCHlch(76.4 73.1 93.8)
OKLCHoklch(0.795 0.158 98.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d7bc21 on white: 1.89:1
AA ✗ fail · AA-large · AAA
Aa
#d7bc21 on black: 11.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.3%
Green73.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta12.6%
Yellow84.7%
Key (black)15.7%

Color previews

#d7bc21 text on a black background

contrast 11.10:1

Card sample

#d7bc21 text on a white background

contrast 1.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d7bc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7bc21 in the Color Lab