Skip to content

#a2cf2e

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

RGB
162, 207, 46
HSL
77°, 64%, 50%
CMYK
22, 0, 78, 19
Luminance
0.5250

Every format

HEX#a2cf2e
RGBrgb(162, 207, 46)
HSLhsl(77, 64%, 50%)
CMYKcmyk(22%, 0%, 78%, 19%)
LABlab(77.6 -36.0 69.0)
LCHlch(77.6 77.8 117.5)
OKLCHoklch(0.794 0.184 124.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2cf2e on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#a2cf2e on black: 11.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green81.2%
Blue18.0%

CMYK percentages

Cyan21.7%
Magenta0.0%
Yellow77.8%
Key (black)18.8%

Color previews

#a2cf2e text on a black background

contrast 11.50:1

Card sample

#a2cf2e text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2cf2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2cf2e in the Color Lab