Skip to content

#aaaa2f

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

RGB
170, 170, 47
HSL
60°, 57%, 43%
CMYK
0, 0, 72, 33
Luminance
0.3750

Every format

HEX#aaaa2f
RGBrgb(170, 170, 47)
HSLhsl(60, 57%, 43%)
CMYKcmyk(0%, 0%, 72%, 33%)
LABlab(67.7 -14.7 59.5)
LCHlch(67.7 61.3 103.9)
OKLCHoklch(0.716 0.140 109.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aaaa2f on white: 2.47:1
AA ✗ fail · AA-large · AAA
Aa
#aaaa2f on black: 8.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red66.7%
Green66.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow72.4%
Key (black)33.3%

Color previews

#aaaa2f text on a black background

contrast 8.50:1

Card sample

#aaaa2f text on a white background

contrast 2.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 170, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 170, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aaaa2f;
background: linear-gradient(135deg, #aaaa2f, #58AA2F);

Monochromatic scale

Palettes built from #aaaa2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #aaaa2f in the Color Lab