Skip to content

#a2cf2f

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

RGB
162, 207, 47
HSL
77°, 63%, 50%
CMYK
22, 0, 77, 19
Luminance
0.5251

Every format

HEX#a2cf2f
RGBrgb(162, 207, 47)
HSLhsl(77, 63%, 50%)
CMYKcmyk(22%, 0%, 77%, 19%)
LABlab(77.6 -35.9 68.7)
LCHlch(77.6 77.5 117.6)
OKLCHoklch(0.795 0.184 124.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red63.5%
Green81.2%
Blue18.4%

CMYK percentages

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

Color previews

#a2cf2f text on a black background

contrast 11.50:1

Card sample

#a2cf2f text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a2cf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2cf2f in the Color Lab