Skip to content

#d3ba21

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

RGB
211, 186, 33
HSL
52°, 73%, 48%
CMYK
0, 12, 84, 17
Luminance
0.4908

Every format

HEX#d3ba21
RGBrgb(211, 186, 33)
HSLhsl(52, 73%, 48%)
CMYKcmyk(0%, 12%, 84%, 17%)
LABlab(75.5 -5.6 72.1)
LCHlch(75.5 72.3 94.4)
OKLCHoklch(0.787 0.156 98.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d3ba21 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#d3ba21 on black: 10.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.7%
Green72.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta11.8%
Yellow84.4%
Key (black)17.3%

Color previews

#d3ba21 text on a black background

contrast 10.82:1

Card sample

#d3ba21 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(211, 186, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 186, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d3ba21;
background: linear-gradient(135deg, #d3ba21, #75D321);

Monochromatic scale

Palettes built from #d3ba21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d3ba21 in the Color Lab