Skip to content

#aa8021

a dark, vivid yellow · warm · closest name: peru

RGB
170, 128, 33
HSL
42°, 68%, 40%
CMYK
0, 25, 81, 33
Luminance
0.2409

Every format

HEX#aa8021
RGBrgb(170, 128, 33)
HSLhsl(42, 68%, 40%)
CMYKcmyk(0%, 25%, 81%, 33%)
LABlab(56.2 7.4 53.8)
LCHlch(56.2 54.3 82.2)
OKLCHoklch(0.625 0.117 82.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa8021 on white: 3.61:1
AA ✗ fail · AA-large · AAA
Aa
#aa8021 on black: 5.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green50.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta24.7%
Yellow80.6%
Key (black)33.3%

Color previews

#aa8021 text on a black background

contrast 5.82:1

Card sample

#aa8021 text on a white background

contrast 3.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa8021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aa8021 in the Color Lab