#4ba40c
a dark, electric green · cool · closest name: green
RGB
75, 164, 12
HSL
95°, 86%, 35%
CMYK
54, 0, 93, 36
Luminance
0.2807
Every format
| HEX | #4ba40c |
| RGB | rgb(75, 164, 12) |
| HSL | hsl(95, 86%, 35%) |
| CMYK | cmyk(54%, 0%, 93%, 36%) |
| LAB | lab(60.0 -49.9 59.8) |
| LCH | lch(60.0 77.9 129.9) |
| OKLCH | oklch(0.638 0.190 137.0) |
Copy-ready code
/* CSS */
color: #4ba40c;
background-color: #4ba40c;
/* Tailwind (arbitrary) */
class="text-[#4ba40c] bg-[#4ba40c]"
/* SCSS */
$brand: #4ba40c;
/* SwiftUI */
Color(red: 0.294, green: 0.643, blue: 0.047)
/* Android */
Color.parseColor("#4ba40c")Accessibility — WCAG contrast
Aa
#4ba40c on white: 3.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#4ba40c on black: 6.61:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red29.4%
Green64.3%
Blue4.7%
CMYK percentages
Cyan54.3%
Magenta0.0%
Yellow92.7%
Key (black)35.7%
Color previews
#4ba40c text on a black background
contrast 6.61:1
Card sample
#4ba40c text on a white background
contrast 3.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4ba40c;
Background color
Panel with #4ba40c background
background-color: #4ba40c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4ba40c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(75, 164, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(75, 164, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4ba40c; background: linear-gradient(135deg, #4ba40c, #0CA432);