Skip to content

#aa9c21

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

RGB
170, 156, 33
HSL
54°, 68%, 40%
CMYK
0, 8, 81, 33
Luminance
0.3243

Every format

HEX#aa9c21
RGBrgb(170, 156, 33)
HSLhsl(54, 68%, 40%)
CMYKcmyk(0%, 8%, 81%, 33%)
LABlab(63.7 -7.9 60.5)
LCHlch(63.7 61.0 97.5)
OKLCHoklch(0.684 0.134 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa9c21 on white: 2.81:1
AA ✗ fail · AA-large · AAA
Aa
#aa9c21 on black: 7.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green61.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta8.2%
Yellow80.6%
Key (black)33.3%

Color previews

#aa9c21 text on a black background

contrast 7.49:1

Card sample

#aa9c21 text on a white background

contrast 2.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa9c21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa9c21 in the Color Lab