Skip to content

#aa9821

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

RGB
170, 152, 33
HSL
52°, 68%, 40%
CMYK
0, 11, 81, 33
Luminance
0.3111

Every format

HEX#aa9821
RGBrgb(170, 152, 33)
HSLhsl(52, 68%, 40%)
CMYKcmyk(0%, 11%, 81%, 33%)
LABlab(62.6 -5.8 59.6)
LCHlch(62.6 59.8 95.6)
OKLCHoklch(0.676 0.131 100.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa9821 on white: 2.91:1
AA ✗ fail · AA-large · AAA
Aa
#aa9821 on black: 7.22:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green59.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta10.6%
Yellow80.6%
Key (black)33.3%

Color previews

#aa9821 text on a black background

contrast 7.22:1

Card sample

#aa9821 text on a white background

contrast 2.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 152, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 152, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aa9821;
background: linear-gradient(135deg, #aa9821, #61AA21);

Monochromatic scale

Palettes built from #aa9821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa9821 in the Color Lab