Skip to content

#a2cc56

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

RGB
162, 204, 86
HSL
81°, 54%, 57%
CMYK
21, 0, 58, 20
Luminance
0.5154

Every format

HEX#a2cc56
RGBrgb(162, 204, 86)
HSLhsl(81, 54%, 57%)
CMYKcmyk(21%, 0%, 58%, 20%)
LABlab(77.0 -32.0 53.2)
LCHlch(77.0 62.1 121.0)
OKLCHoklch(0.791 0.153 126.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2cc56 on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#a2cc56 on black: 11.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green80.0%
Blue33.7%

CMYK percentages

Cyan20.6%
Magenta0.0%
Yellow57.8%
Key (black)20.0%

Color previews

#a2cc56 text on a black background

contrast 11.31:1

Card sample

#a2cc56 text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2cc56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2cc56 in the Color Lab