Skip to content

#d1ba2f

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

RGB
209, 186, 47
HSL
52°, 64%, 50%
CMYK
0, 11, 78, 18
Luminance
0.4888

Every format

HEX#d1ba2f
RGBrgb(209, 186, 47)
HSLhsl(52, 64%, 50%)
CMYKcmyk(0%, 11%, 78%, 18%)
LABlab(75.4 -6.0 68.0)
LCHlch(75.4 68.2 95.0)
OKLCHoklch(0.786 0.150 99.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d1ba2f on white: 1.95:1
AA ✗ fail · AA-large · AAA
Aa
#d1ba2f on black: 10.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green72.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta11.0%
Yellow77.5%
Key (black)18.0%

Color previews

#d1ba2f text on a black background

contrast 10.78:1

Card sample

#d1ba2f text on a white background

contrast 1.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d1ba2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d1ba2f in the Color Lab