#40b821
a dark, vivid green · cool · closest name: green
RGB
64, 184, 33
HSL
108°, 70%, 43%
CMYK
65, 0, 82, 28
Luminance
0.3548
Every format
| HEX | #40b821 |
| RGB | rgb(64, 184, 33) |
| HSL | hsl(108, 70%, 43%) |
| CMYK | cmyk(65%, 0%, 82%, 28%) |
| LAB | lab(66.1 -58.9 60.5) |
| LCH | lch(66.1 84.5 134.3) |
| OKLCH | oklch(0.689 0.210 140.4) |
Copy-ready code
/* CSS */
color: #40b821;
background-color: #40b821;
/* Tailwind (arbitrary) */
class="text-[#40b821] bg-[#40b821]"
/* SCSS */
$brand: #40b821;
/* SwiftUI */
Color(red: 0.251, green: 0.722, blue: 0.129)
/* Android */
Color.parseColor("#40b821")Accessibility — WCAG contrast
Aa
#40b821 on white: 2.59:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#40b821 on black: 8.10:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green72.2%
Blue12.9%
CMYK percentages
Cyan65.2%
Magenta0.0%
Yellow82.1%
Key (black)27.8%
Color previews
#40b821 text on a black background
contrast 8.10:1
Card sample
#40b821 text on a white background
contrast 2.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #40b821;
Background color
Panel with #40b821 background
background-color: #40b821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #40b821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 184, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 184, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40b821; background: linear-gradient(135deg, #40b821, #21B867);