Skip to content

#40df1f

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

RGB
64, 223, 31
HSL
110°, 76%, 50%
CMYK
71, 0, 86, 13
Luminance
0.5396

Every format

HEX#40df1f
RGBrgb(64, 223, 31)
HSLhsl(110, 76%, 50%)
CMYKcmyk(71%, 0%, 86%, 13%)
LABlab(78.4 -71.4 72.0)
LCHlch(78.4 101.4 134.8)
OKLCHoklch(0.791 0.251 141.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40df1f on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#40df1f on black: 11.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green87.5%
Blue12.2%

CMYK percentages

Cyan71.3%
Magenta0.0%
Yellow86.1%
Key (black)12.5%

Color previews

#40df1f text on a black background

contrast 11.79:1

Card sample

#40df1f text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40df1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40df1f in the Color Lab