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