#40cf39
a balanced, vivid green · cool · closest name: forestgreen
RGB
64, 207, 57
HSL
117°, 61%, 52%
CMYK
69, 0, 73, 19
Luminance
0.4601
Every format
| HEX | #40cf39 |
| RGB | rgb(64, 207, 57) |
| HSL | hsl(117, 61%, 52%) |
| CMYK | cmyk(69%, 0%, 73%, 19%) |
| LAB | lab(73.5 -64.9 60.1) |
| LCH | lch(73.5 88.5 137.2) |
| OKLCH | oklch(0.751 0.223 142.4) |
Copy-ready code
/* CSS */
color: #40cf39;
background-color: #40cf39;
/* Tailwind (arbitrary) */
class="text-[#40cf39] bg-[#40cf39]"
/* SCSS */
$brand: #40cf39;
/* SwiftUI */
Color(red: 0.251, green: 0.812, blue: 0.224)
/* Android */
Color.parseColor("#40cf39")Accessibility — WCAG contrast
Aa
#40cf39 on white: 2.06:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#40cf39 on black: 10.20:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green81.2%
Blue22.4%
CMYK percentages
Cyan69.1%
Magenta0.0%
Yellow72.5%
Key (black)18.8%
Color previews
#40cf39 text on a black background
contrast 10.20:1
Card sample
#40cf39 text on a white background
contrast 2.06:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #40cf39;
Background color
Panel with #40cf39 background
background-color: #40cf39;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #40cf39;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 207, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 207, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40cf39; background: linear-gradient(135deg, #40cf39, #39CF96);