Skip to content

#2adf1f

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

RGB
42, 223, 31
HSL
117°, 76%, 50%
CMYK
81, 0, 86, 13
Luminance
0.5337

Every format

HEX#2adf1f
RGBrgb(42, 223, 31)
HSLhsl(117, 76%, 50%)
CMYKcmyk(81%, 0%, 86%, 13%)
LABlab(78.1 -74.5 71.6)
LCHlch(78.1 103.3 136.2)
OKLCHoklch(0.787 0.256 142.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2adf1f on white: 1.80:1
AA ✗ fail · AA-large · AAA
Aa
#2adf1f on black: 11.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green87.5%
Blue12.2%

CMYK percentages

Cyan81.2%
Magenta0.0%
Yellow86.1%
Key (black)12.5%

Color previews

#2adf1f text on a black background

contrast 11.67:1

Card sample

#2adf1f text on a white background

contrast 1.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 223, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 223, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2adf1f;
background: linear-gradient(135deg, #2adf1f, #1FDF94);

Monochromatic scale

Palettes built from #2adf1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2adf1f in the Color Lab