Skip to content

#d8ab21

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

RGB
216, 171, 33
HSL
45°, 74%, 49%
CMYK
0, 21, 85, 15
Luminance
0.4383

Every format

HEX#d8ab21
RGBrgb(216, 171, 33)
HSLhsl(45, 74%, 49%)
CMYKcmyk(0%, 21%, 85%, 15%)
LABlab(72.1 4.5 69.5)
LCHlch(72.1 69.6 86.3)
OKLCHoklch(0.761 0.148 88.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d8ab21 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#d8ab21 on black: 9.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.7%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta20.8%
Yellow84.7%
Key (black)15.3%

Color previews

#d8ab21 text on a black background

contrast 9.77:1

Card sample

#d8ab21 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(216, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(216, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d8ab21;
background: linear-gradient(135deg, #d8ab21, #8BD821);

Monochromatic scale

Palettes built from #d8ab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d8ab21 in the Color Lab