#4fab21
a dark, vivid green · cool · closest name: forestgreen
RGB
79, 171, 33
HSL
100°, 68%, 40%
CMYK
54, 0, 81, 33
Luminance
0.3090
Every format
| HEX | #4fab21 |
| RGB | rgb(79, 171, 33) |
| HSL | hsl(100, 68%, 40%) |
| CMYK | cmyk(54%, 0%, 81%, 33%) |
| LAB | lab(62.4 -50.6 57.2) |
| LCH | lch(62.4 76.4 131.5) |
| OKLCH | oklch(0.659 0.189 137.9) |
Copy-ready code
/* CSS */
color: #4fab21;
background-color: #4fab21;
/* Tailwind (arbitrary) */
class="text-[#4fab21] bg-[#4fab21]"
/* SCSS */
$brand: #4fab21;
/* SwiftUI */
Color(red: 0.310, green: 0.671, blue: 0.129)
/* Android */
Color.parseColor("#4fab21")Accessibility — WCAG contrast
Aa
#4fab21 on white: 2.92:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#4fab21 on black: 7.18:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green67.1%
Blue12.9%
CMYK percentages
Cyan53.8%
Magenta0.0%
Yellow80.7%
Key (black)32.9%
Color previews
#4fab21 text on a black background
contrast 7.18:1
Card sample
#4fab21 text on a white background
contrast 2.92:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4fab21;
Background color
Panel with #4fab21 background
background-color: #4fab21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4fab21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4fab21; background: linear-gradient(135deg, #4fab21, #21AB4F);