#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 |
| RGB | rgb(64, 255, 64) |
| HSL | hsl(120, 100%, 63%) |
| CMYK | cmyk(75%, 0%, 75%, 0%) |
| LAB | lab(88.4 -79.3 72.6) |
| LCH | lch(88.4 107.5 137.5) |
| OKLCH | oklch(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);