Skip to content

#40ff40

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

RGB
64, 255, 64
HSL
120°, 100%, 63%
CMYK
75, 0, 75, 0
Luminance
0.7298

Every format

HEX#40ff40
RGBrgb(64, 255, 64)
HSLhsl(120, 100%, 63%)
CMYKcmyk(75%, 0%, 75%, 0%)
LABlab(88.4 -79.3 72.6)
LCHlch(88.4 107.5 137.5)
OKLCHoklch(0.874 0.270 142.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40ff40 on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#40ff40 on black: 15.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green100.0%
Blue25.1%

CMYK percentages

Cyan74.9%
Magenta0.0%
Yellow74.9%
Key (black)0.0%

Color previews

#40ff40 text on a black background

contrast 15.60:1

Card sample

#40ff40 text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40ff40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40ff40 in the Color Lab