#4fac0f
a dark, electric green · cool · closest name: green
RGB
79, 172, 15
HSL
96°, 84%, 37%
CMYK
54, 0, 91, 33
Luminance
0.3120
Every format
| HEX | #4fac0f |
| RGB | rgb(79, 172, 15) |
| HSL | hsl(96, 84%, 37%) |
| CMYK | cmyk(54%, 0%, 91%, 33%) |
| LAB | lab(62.7 -51.7 61.6) |
| LCH | lch(62.7 80.4 130.0) |
| OKLCH | oklch(0.661 0.196 137.1) |
Copy-ready code
/* CSS */
color: #4fac0f;
background-color: #4fac0f;
/* Tailwind (arbitrary) */
class="text-[#4fac0f] bg-[#4fac0f]"
/* SCSS */
$brand: #4fac0f;
/* SwiftUI */
Color(red: 0.310, green: 0.675, blue: 0.059)
/* Android */
Color.parseColor("#4fac0f")Accessibility — WCAG contrast
Aa
#4fac0f on white: 2.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#4fac0f on black: 7.24:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green67.5%
Blue5.9%
CMYK percentages
Cyan54.1%
Magenta0.0%
Yellow91.3%
Key (black)32.5%
Color previews
#4fac0f text on a black background
contrast 7.24:1
Card sample
#4fac0f text on a white background
contrast 2.90:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4fac0f;
Background color
Panel with #4fac0f background
background-color: #4fac0f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4fac0f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 172, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 172, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4fac0f; background: linear-gradient(135deg, #4fac0f, #0FAC38);