Skip to content

#ad9a21

a dark, vivid yellow · cool · closest name: olive

RGB
173, 154, 33
HSL
52°, 68%, 40%
CMYK
0, 11, 81, 32
Luminance
0.3211

Every format

HEX#ad9a21
RGBrgb(173, 154, 33)
HSLhsl(52, 68%, 40%)
CMYKcmyk(0%, 11%, 81%, 32%)
LABlab(63.4 -5.5 60.4)
LCHlch(63.4 60.6 95.2)
OKLCHoklch(0.683 0.133 99.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ad9a21 on white: 2.83:1
AA ✗ fail · AA-large · AAA
Aa
#ad9a21 on black: 7.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.8%
Green60.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta11.0%
Yellow80.9%
Key (black)32.2%

Color previews

#ad9a21 text on a black background

contrast 7.42:1

Card sample

#ad9a21 text on a white background

contrast 2.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(173, 154, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(173, 154, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ad9a21;
background: linear-gradient(135deg, #ad9a21, #63AD21);

Monochromatic scale

Palettes built from #ad9a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ad9a21 in the Color Lab