#40f308
a balanced, electric green · cool · closest name: lime
RGB
64, 243, 8
HSL
106°, 94%, 49%
CMYK
74, 0, 97, 5
Luminance
0.6521
Every format
| HEX | #40f308 |
| RGB | rgb(64, 243, 8) |
| HSL | hsl(106, 94%, 49%) |
| CMYK | cmyk(74%, 0%, 97%, 5%) |
| LAB | lab(84.6 -77.9 80.3) |
| LCH | lch(84.6 111.9 134.2) |
| OKLCH | oklch(0.842 0.275 140.9) |
Copy-ready code
/* CSS */
color: #40f308;
background-color: #40f308;
/* Tailwind (arbitrary) */
class="text-[#40f308] bg-[#40f308]"
/* SCSS */
$brand: #40f308;
/* SwiftUI */
Color(red: 0.251, green: 0.953, blue: 0.031)
/* Android */
Color.parseColor("#40f308")Accessibility — WCAG contrast
Aa
#40f308 on white: 1.50:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#40f308 on black: 14.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green95.3%
Blue3.1%
CMYK percentages
Cyan73.7%
Magenta0.0%
Yellow96.7%
Key (black)4.7%
Color previews
#40f308 text on a black background
contrast 14.04:1
Card sample
#40f308 text on a white background
contrast 1.50:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #40f308;
Background color
Panel with #40f308 background
background-color: #40f308;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #40f308;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 243, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 243, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40f308; background: linear-gradient(135deg, #40f308, #08F36D);