Skip to content

#40cd2d

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

RGB
64, 205, 45
HSL
113°, 64%, 49%
CMYK
69, 0, 78, 20
Luminance
0.4494

Every format

HEX#40cd2d
RGBrgb(64, 205, 45)
HSLhsl(113, 64%, 49%)
CMYKcmyk(69%, 0%, 78%, 20%)
LABlab(72.8 -65.1 63.4)
LCHlch(72.8 90.9 135.8)
OKLCHoklch(0.745 0.227 141.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40cd2d on white: 2.10:1
AA ✗ fail · AA-large · AAA
Aa
#40cd2d on black: 9.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green80.4%
Blue17.6%

CMYK percentages

Cyan68.8%
Magenta0.0%
Yellow78.0%
Key (black)19.6%

Color previews

#40cd2d text on a black background

contrast 9.99:1

Card sample

#40cd2d text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40cd2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40cd2d in the Color Lab