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