Skip to content

#d7ba2c

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

RGB
215, 186, 44
HSL
50°, 68%, 51%
CMYK
0, 14, 80, 16
Luminance
0.4975

Every format

HEX#d7ba2c
RGBrgb(215, 186, 44)
HSLhsl(50, 68%, 51%)
CMYKcmyk(0%, 14%, 80%, 16%)
LABlab(75.9 -3.5 69.6)
LCHlch(75.9 69.7 92.9)
OKLCHoklch(0.791 0.152 96.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red84.3%
Green72.9%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta13.5%
Yellow79.5%
Key (black)15.7%

Color previews

#d7ba2c text on a black background

contrast 10.95:1

Card sample

#d7ba2c text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(215, 186, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 186, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7ba2c;
background: linear-gradient(135deg, #d7ba2c, #82D72C);

Monochromatic scale

Palettes built from #d7ba2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7ba2c in the Color Lab