Skip to content

#a2ef1f

a balanced, electric green · cool · closest name: yellow

RGB
162, 239, 31
HSL
82°, 87%, 53%
CMYK
32, 0, 87, 6
Luminance
0.6951

Every format

HEX#a2ef1f
RGBrgb(162, 239, 31)
HSLhsl(82, 87%, 53%)
CMYKcmyk(32%, 0%, 87%, 6%)
LABlab(86.8 -50.3 80.5)
LCHlch(86.8 94.9 122.0)
OKLCHoklch(0.869 0.226 129.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a2ef1f on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#a2ef1f on black: 14.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red63.5%
Green93.7%
Blue12.2%

CMYK percentages

Cyan32.2%
Magenta0.0%
Yellow87.0%
Key (black)6.3%

Color previews

#a2ef1f text on a black background

contrast 14.90:1

Card sample

#a2ef1f text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(162, 239, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 239, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2ef1f;
background: linear-gradient(135deg, #a2ef1f, #1FEF26);

Monochromatic scale

Palettes built from #a2ef1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a2ef1f in the Color Lab