#78aa21
a dark, vivid green · cool · closest name: olivedrab
RGB
120, 170, 33
HSL
82°, 68%, 40%
CMYK
29, 0, 81, 33
Luminance
0.3285
Every format
| HEX | #78aa21 |
| RGB | rgb(120, 170, 33) |
| HSL | hsl(82, 68%, 40%) |
| CMYK | cmyk(29%, 0%, 81%, 33%) |
| LAB | lab(64.0 -36.2 59.4) |
| LCH | lch(64.0 69.6 121.3) |
| OKLCH | oklch(0.678 0.167 128.5) |
Copy-ready code
/* CSS */
color: #78aa21;
background-color: #78aa21;
/* Tailwind (arbitrary) */
class="text-[#78aa21] bg-[#78aa21]"
/* SCSS */
$brand: #78aa21;
/* SwiftUI */
Color(red: 0.471, green: 0.667, blue: 0.129)
/* Android */
Color.parseColor("#78aa21")Accessibility — WCAG contrast
Aa
#78aa21 on white: 2.77:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#78aa21 on black: 7.57:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red47.1%
Green66.7%
Blue12.9%
CMYK percentages
Cyan29.4%
Magenta0.0%
Yellow80.6%
Key (black)33.3%
Color previews
#78aa21 text on a black background
contrast 7.57:1
Card sample
#78aa21 text on a white background
contrast 2.77:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #78aa21;
Background color
Panel with #78aa21 background
background-color: #78aa21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #78aa21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(120, 170, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 170, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #78aa21; background: linear-gradient(135deg, #78aa21, #21AA25);