Skip to content

#2af56f

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

RGB
42, 245, 111
HSL
140°, 91%, 56%
CMYK
83, 0, 55, 4
Luminance
0.6694

Every format

HEX#2af56f
RGBrgb(42, 245, 111)
HSLhsl(140, 91%, 56%)
CMYKcmyk(83%, 0%, 55%, 4%)
LABlab(85.5 -74.0 50.8)
LCHlch(85.5 89.8 145.5)
OKLCHoklch(0.850 0.233 148.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af56f on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#2af56f on black: 14.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green96.1%
Blue43.5%

CMYK percentages

Cyan82.9%
Magenta0.0%
Yellow54.7%
Key (black)3.9%

Color previews

#2af56f text on a black background

contrast 14.39:1

Card sample

#2af56f text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af56f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af56f in the Color Lab