#40c721
a balanced, vivid green · cool · closest name: green
RGB
64, 199, 33
HSL
109°, 72%, 46%
CMYK
68, 0, 83, 22
Luminance
0.4205
Every format
| HEX | #40c721 |
| RGB | rgb(64, 199, 33) |
| HSL | hsl(109, 72%, 46%) |
| CMYK | cmyk(68%, 0%, 83%, 22%) |
| LAB | lab(70.9 -63.9 64.8) |
| LCH | lch(70.9 91.0 134.6) |
| OKLCH | oklch(0.728 0.226 140.7) |
Copy-ready code
/* CSS */
color: #40c721;
background-color: #40c721;
/* Tailwind (arbitrary) */
class="text-[#40c721] bg-[#40c721]"
/* SCSS */
$brand: #40c721;
/* SwiftUI */
Color(red: 0.251, green: 0.780, blue: 0.129)
/* Android */
Color.parseColor("#40c721")Accessibility — WCAG contrast
Aa
#40c721 on white: 2.23:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#40c721 on black: 9.41:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green78.0%
Blue12.9%
CMYK percentages
Cyan67.8%
Magenta0.0%
Yellow83.4%
Key (black)22.0%
Color previews
#40c721 text on a black background
contrast 9.41:1
Card sample
#40c721 text on a white background
contrast 2.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #40c721;
Background color
Panel with #40c721 background
background-color: #40c721;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #40c721;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 199, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 199, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c721; background: linear-gradient(135deg, #40c721, #21C771);