Skip to content

#a1aa21

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

RGB
161, 170, 33
HSL
64°, 68%, 40%
CMYK
5, 0, 81, 33
Luminance
0.3644

Every format

HEX#a1aa21
RGBrgb(161, 170, 33)
HSLhsl(64, 68%, 40%)
CMYKcmyk(5%, 0%, 81%, 33%)
LABlab(66.8 -19.2 63.0)
LCHlch(66.8 65.9 106.9)
OKLCHoklch(0.708 0.149 113.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a1aa21 on white: 2.53:1
AA ✗ fail · AA-large · AAA
Aa
#a1aa21 on black: 8.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.1%
Green66.7%
Blue12.9%

CMYK percentages

Cyan5.3%
Magenta0.0%
Yellow80.6%
Key (black)33.3%

Color previews

#a1aa21 text on a black background

contrast 8.29:1

Card sample

#a1aa21 text on a white background

contrast 2.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a1aa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a1aa21 in the Color Lab