Skip to content

#a2ac21

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

RGB
162, 172, 33
HSL
64°, 68%, 40%
CMYK
6, 0, 81, 33
Luminance
0.3730

Every format

HEX#a2ac21
RGBrgb(162, 172, 33)
HSLhsl(64, 68%, 40%)
CMYKcmyk(6%, 0%, 81%, 33%)
LABlab(67.5 -19.8 63.6)
LCHlch(67.5 66.6 107.2)
OKLCHoklch(0.713 0.151 114.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2ac21 on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#a2ac21 on black: 8.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green67.5%
Blue12.9%

CMYK percentages

Cyan5.8%
Magenta0.0%
Yellow80.8%
Key (black)32.5%

Color previews

#a2ac21 text on a black background

contrast 8.46:1

Card sample

#a2ac21 text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 172, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 172, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2ac21;
background: linear-gradient(135deg, #a2ac21, #45AC21);

Monochromatic scale

Palettes built from #a2ac21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2ac21 in the Color Lab