Skip to content

#40dc2d

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

RGB
64, 220, 45
HSL
114°, 71%, 52%
CMYK
71, 0, 80, 14
Luminance
0.5247

Every format

HEX#40dc2d
RGBrgb(64, 220, 45)
HSLhsl(114, 71%, 52%)
CMYKcmyk(71%, 0%, 80%, 14%)
LABlab(77.6 -69.9 67.8)
LCHlch(77.6 97.4 135.9)
OKLCHoklch(0.784 0.243 141.7)

Copy-ready code

/* CSS */
color: #40dc2d;
background-color: #40dc2d;
/* Tailwind (arbitrary) */
class="text-[#40dc2d] bg-[#40dc2d]"
/* SCSS */
$brand: #40dc2d;
/* SwiftUI */
Color(red: 0.251, green: 0.863, blue: 0.176)
/* Android */
Color.parseColor("#40dc2d")

Accessibility — WCAG contrast

Aa
#40dc2d on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#40dc2d on black: 11.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green86.3%
Blue17.6%

CMYK percentages

Cyan70.9%
Magenta0.0%
Yellow79.5%
Key (black)13.7%

Color previews

#40dc2d text on a black background

contrast 11.49:1

Card sample

#40dc2d text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 220, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 220, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40dc2d;
background: linear-gradient(135deg, #40dc2d, #2DDC8F);

Monochromatic scale

Palettes built from #40dc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40dc2d in the Color Lab