#40c040
a balanced, vivid green · cool · closest name: forestgreen
RGB
64, 192, 64
HSL
120°, 50%, 50%
CMYK
67, 0, 67, 25
Luminance
0.3916
Every format
| HEX | #40c040 |
| RGB | rgb(64, 192, 64) |
| HSL | hsl(120, 50%, 50%) |
| CMYK | cmyk(67%, 0%, 67%, 25%) |
| LAB | lab(68.9 -59.3 52.5) |
| LCH | lch(68.9 79.2 138.5) |
| OKLCH | oklch(0.712 0.202 143.1) |
Copy-ready code
/* CSS */
color: #40c040;
background-color: #40c040;
/* Tailwind (arbitrary) */
class="text-[#40c040] bg-[#40c040]"
/* SCSS */
$brand: #40c040;
/* SwiftUI */
Color(red: 0.251, green: 0.753, blue: 0.251)
/* Android */
Color.parseColor("#40c040")Accessibility — WCAG contrast
Aa
#40c040 on white: 2.38:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#40c040 on black: 8.83:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green75.3%
Blue25.1%
CMYK percentages
Cyan66.7%
Magenta0.0%
Yellow66.7%
Key (black)24.7%
Color previews
#40c040 text on a black background
contrast 8.83:1
Card sample
#40c040 text on a white background
contrast 2.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #40c040;
Background color
Panel with #40c040 background
background-color: #40c040;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #40c040;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 192, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 192, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c040; background: linear-gradient(135deg, #40c040, #40C095);