Skip to content

#40cb40

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

RGB
64, 203, 64
HSL
120°, 57%, 52%
CMYK
69, 0, 69, 20
Luminance
0.4417

Every format

HEX#40cb40
RGBrgb(64, 203, 64)
HSLhsl(120, 57%, 52%)
CMYKcmyk(69%, 0%, 69%, 20%)
LABlab(72.3 -63.0 56.2)
LCHlch(72.3 84.4 138.3)
OKLCHoklch(0.741 0.214 143.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40cb40 on white: 2.14:1
AA ✗ fail · AA-large · AAA
Aa
#40cb40 on black: 9.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green79.6%
Blue25.1%

CMYK percentages

Cyan68.5%
Magenta0.0%
Yellow68.5%
Key (black)20.4%

Color previews

#40cb40 text on a black background

contrast 9.83:1

Card sample

#40cb40 text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40cb40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40cb40 in the Color Lab