Skip to content

#d2ac26

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

RGB
210, 172, 38
HSL
47°, 69%, 49%
CMYK
0, 18, 82, 18
Luminance
0.4335

Every format

HEX#d2ac26
RGBrgb(210, 172, 38)
HSLhsl(47, 69%, 49%)
CMYKcmyk(0%, 18%, 82%, 18%)
LABlab(71.8 1.5 67.6)
LCHlch(71.8 67.6 88.8)
OKLCHoklch(0.757 0.145 91.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2ac26 on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#d2ac26 on black: 9.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green67.5%
Blue14.9%

CMYK percentages

Cyan0.0%
Magenta18.1%
Yellow81.9%
Key (black)17.6%

Color previews

#d2ac26 text on a black background

contrast 9.67:1

Card sample

#d2ac26 text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 172, 38, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 172, 38, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2ac26;
background: linear-gradient(135deg, #d2ac26, #85D226);

Monochromatic scale

Palettes built from #d2ac26

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2ac26 in the Color Lab