Skip to content

#2af22f

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

RGB
42, 242, 47
HSL
122°, 89%, 56%
CMYK
83, 0, 81, 5
Luminance
0.6420

Every format

HEX#2af22f
RGBrgb(42, 242, 47)
HSLhsl(122, 89%, 56%)
CMYKcmyk(83%, 0%, 81%, 5%)
LABlab(84.1 -79.1 73.2)
LCHlch(84.1 107.8 137.2)
OKLCHoklch(0.837 0.269 142.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af22f on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#2af22f on black: 13.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green94.9%
Blue18.4%

CMYK percentages

Cyan82.6%
Magenta0.0%
Yellow80.6%
Key (black)5.1%

Color previews

#2af22f text on a black background

contrast 13.84:1

Card sample

#2af22f text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 242, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 242, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2af22f;
background: linear-gradient(135deg, #2af22f, #2AF2B4);

Monochromatic scale

Palettes built from #2af22f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af22f in the Color Lab