Skip to content

#aa9d21

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

RGB
170, 157, 33
HSL
54°, 68%, 40%
CMYK
0, 8, 81, 33
Luminance
0.3277

Every format

HEX#aa9d21
RGBrgb(170, 157, 33)
HSLhsl(54, 68%, 40%)
CMYKcmyk(0%, 8%, 81%, 33%)
LABlab(64.0 -8.5 60.8)
LCHlch(64.0 61.4 97.9)
OKLCHoklch(0.687 0.135 103.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa9d21 on white: 2.78:1
AA ✗ fail · AA-large · AAA
Aa
#aa9d21 on black: 7.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green61.6%
Blue12.9%

CMYK percentages

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

Color previews

#aa9d21 text on a black background

contrast 7.55:1

Card sample

#aa9d21 text on a white background

contrast 2.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa9d21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa9d21 in the Color Lab