Skip to content

#a7aa21

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

RGB
167, 170, 33
HSL
61°, 68%, 40%
CMYK
2, 0, 81, 33
Luminance
0.3707

Every format

HEX#a7aa21
RGBrgb(167, 170, 33)
HSLhsl(61, 68%, 40%)
CMYKcmyk(2%, 0%, 81%, 33%)
LABlab(67.3 -16.6 63.6)
LCHlch(67.3 65.7 104.6)
OKLCHoklch(0.713 0.148 111.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a7aa21 on white: 2.50:1
AA ✗ fail · AA-large · AAA
Aa
#a7aa21 on black: 8.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red65.5%
Green66.7%
Blue12.9%

CMYK percentages

Cyan1.8%
Magenta0.0%
Yellow80.6%
Key (black)33.3%

Color previews

#a7aa21 text on a black background

contrast 8.41:1

Card sample

#a7aa21 text on a white background

contrast 2.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a7aa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a7aa21 in the Color Lab