Skip to content

#a2cd4f

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

RGB
162, 205, 79
HSL
81°, 56%, 56%
CMYK
21, 0, 62, 20
Luminance
0.5191

Every format

HEX#a2cd4f
RGBrgb(162, 205, 79)
HSLhsl(81, 56%, 56%)
CMYKcmyk(21%, 0%, 62%, 20%)
LABlab(77.2 -33.0 56.5)
LCHlch(77.2 65.5 120.3)
OKLCHoklch(0.792 0.161 125.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2cd4f on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#a2cd4f on black: 11.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green80.4%
Blue31.0%

CMYK percentages

Cyan21.0%
Magenta0.0%
Yellow61.5%
Key (black)19.6%

Color previews

#a2cd4f text on a black background

contrast 11.38:1

Card sample

#a2cd4f text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 205, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 205, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2cd4f;
background: linear-gradient(135deg, #a2cd4f, #4FCD50);

Monochromatic scale

Palettes built from #a2cd4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2cd4f in the Color Lab