Skip to content

#40ff20

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

RGB
64, 255, 32
HSL
111°, 100%, 56%
CMYK
75, 0, 88, 0
Luminance
0.7271

Every format

HEX#40ff20
RGBrgb(64, 255, 32)
HSLhsl(111, 100%, 56%)
CMYKcmyk(75%, 0%, 88%, 0%)
LABlab(88.3 -80.8 80.4)
LCHlch(88.3 114.0 135.2)
OKLCHoklch(0.873 0.282 141.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red25.1%
Green100.0%
Blue12.5%

CMYK percentages

Cyan74.9%
Magenta0.0%
Yellow87.5%
Key (black)0.0%

Color previews

#40ff20 text on a black background

contrast 15.54:1

Card sample

#40ff20 text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40ff20

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40ff20 in the Color Lab