Skip to content

#40f02f

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

RGB
64, 240, 47
HSL
115°, 87%, 56%
CMYK
73, 0, 80, 6
Luminance
0.6362

Every format

HEX#40f02f
RGBrgb(64, 240, 47)
HSLhsl(115, 87%, 56%)
CMYKcmyk(73%, 0%, 80%, 6%)
LABlab(83.8 -75.8 73.0)
LCHlch(83.8 105.3 136.1)
OKLCHoklch(0.835 0.262 141.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40f02f on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#40f02f on black: 13.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red25.1%
Green94.1%
Blue18.4%

CMYK percentages

Cyan73.3%
Magenta0.0%
Yellow80.4%
Key (black)5.9%

Color previews

#40f02f text on a black background

contrast 13.72:1

Card sample

#40f02f text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40f02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40f02f in the Color Lab