Skip to content

#40df72

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

RGB
64, 223, 114
HSL
139°, 71%, 56%
CMYK
71, 0, 49, 13
Luminance
0.5508

Every format

HEX#40df72
RGBrgb(64, 223, 114)
HSLhsl(139, 71%, 56%)
CMYKcmyk(71%, 0%, 49%, 13%)
LABlab(79.1 -63.7 41.7)
LCHlch(79.1 76.1 146.8)
OKLCHoklch(0.798 0.199 149.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40df72 on white: 1.75:1
AA ✗ fail · AA-large · AAA
Aa
#40df72 on black: 12.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green87.5%
Blue44.7%

CMYK percentages

Cyan71.3%
Magenta0.0%
Yellow48.9%
Key (black)12.5%

Color previews

#40df72 text on a black background

contrast 12.02:1

Card sample

#40df72 text on a white background

contrast 1.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40df72

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40df72 in the Color Lab