#078b21
a dark, electric green · cool · closest name: forestgreen
RGB
7, 139, 33
HSL
132°, 90%, 29%
CMYK
95, 0, 76, 46
Luminance
0.1862
Every format
| HEX | #078b21 |
| RGB | rgb(7, 139, 33) |
| HSL | hsl(132, 90%, 29%) |
| CMYK | cmyk(95%, 0%, 76%, 46%) |
| LAB | lab(50.2 -52.7 44.9) |
| LCH | lch(50.2 69.3 139.6) |
| OKLCH | oklch(0.554 0.175 144.4) |
Copy-ready code
/* CSS */
color: #078b21;
background-color: #078b21;
/* Tailwind (arbitrary) */
class="text-[#078b21] bg-[#078b21]"
/* SCSS */
$brand: #078b21;
/* SwiftUI */
Color(red: 0.027, green: 0.545, blue: 0.129)
/* Android */
Color.parseColor("#078b21")Accessibility — WCAG contrast
Aa
#078b21 on white: 4.45:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#078b21 on black: 4.72:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red2.7%
Green54.5%
Blue12.9%
CMYK percentages
Cyan95.0%
Magenta0.0%
Yellow76.3%
Key (black)45.5%
Color previews
#078b21 text on a black background
contrast 4.72:1
Card sample
#078b21 text on a white background
contrast 4.45:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #078b21;
Background color
Panel with #078b21 background
background-color: #078b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #078b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(7, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(7, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #078b21; background: linear-gradient(135deg, #078b21, #078B79);