Skip to content

#a2cc2c

a balanced, vivid green · cool · closest name: olivedrab

RGB
162, 204, 44
HSL
76°, 65%, 49%
CMYK
21, 0, 78, 20
Luminance
0.5105

Every format

HEX#a2cc2c
RGBrgb(162, 204, 44)
HSLhsl(76, 65%, 49%)
CMYKcmyk(21%, 0%, 78%, 20%)
LABlab(76.7 -34.7 68.8)
LCHlch(76.7 77.0 116.8)
OKLCHoklch(0.787 0.182 124.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2cc2c on white: 1.87:1
AA ✗ fail · AA-large · AAA
Aa
#a2cc2c on black: 11.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green80.0%
Blue17.3%

CMYK percentages

Cyan20.6%
Magenta0.0%
Yellow78.4%
Key (black)20.0%

Color previews

#a2cc2c text on a black background

contrast 11.21:1

Card sample

#a2cc2c text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 204, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 204, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2cc2c;
background: linear-gradient(135deg, #a2cc2c, #37CC2C);

Monochromatic scale

Palettes built from #a2cc2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2cc2c in the Color Lab