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