Skip to content

#40f024

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

RGB
64, 240, 36
HSL
112°, 87%, 54%
CMYK
73, 0, 85, 6
Luminance
0.6354

Every format

HEX#40f024
RGBrgb(64, 240, 36)
HSLhsl(112, 87%, 54%)
CMYKcmyk(73%, 0%, 85%, 6%)
LABlab(83.7 -76.3 75.6)
LCHlch(83.7 107.5 135.3)
OKLCHoklch(0.835 0.266 141.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red25.1%
Green94.1%
Blue14.1%

CMYK percentages

Cyan73.3%
Magenta0.0%
Yellow85.0%
Key (black)5.9%

Color previews

#40f024 text on a black background

contrast 13.71:1

Card sample

#40f024 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #40f024

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #40f024 in the Color Lab