Skip to content

#2afd28

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

RGB
42, 253, 40
HSL
119°, 98%, 58%
CMYK
83, 0, 84, 1
Luminance
0.7090

Every format

HEX#2afd28
RGBrgb(42, 253, 40)
HSLhsl(119, 98%, 58%)
CMYKcmyk(83%, 0%, 84%, 1%)
LABlab(87.4 -82.5 77.9)
LCHlch(87.4 113.5 136.6)
OKLCHoklch(0.865 0.282 142.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2afd28 on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#2afd28 on black: 15.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green99.2%
Blue15.7%

CMYK percentages

Cyan83.4%
Magenta0.0%
Yellow84.2%
Key (black)0.8%

Color previews

#2afd28 text on a black background

contrast 15.18:1

Card sample

#2afd28 text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 253, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 253, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2afd28;
background: linear-gradient(135deg, #2afd28, #28FDB4);

Monochromatic scale

Palettes built from #2afd28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2afd28 in the Color Lab