#8cba21
a dark, vivid green · cool · closest name: olivedrab
RGB
140, 186, 33
HSL
78°, 70%, 43%
CMYK
25, 0, 82, 27
Luminance
0.4080
Every format
| HEX | #8cba21 |
| RGB | rgb(140, 186, 33) |
| HSL | hsl(78, 70%, 43%) |
| CMYK | cmyk(25%, 0%, 82%, 27%) |
| LAB | lab(70.0 -35.6 65.3) |
| LCH | lch(70.0 74.3 118.6) |
| OKLCH | oklch(0.730 0.176 126.0) |
Copy-ready code
/* CSS */
color: #8cba21;
background-color: #8cba21;
/* Tailwind (arbitrary) */
class="text-[#8cba21] bg-[#8cba21]"
/* SCSS */
$brand: #8cba21;
/* SwiftUI */
Color(red: 0.549, green: 0.729, blue: 0.129)
/* Android */
Color.parseColor("#8cba21")Accessibility — WCAG contrast
Aa
#8cba21 on white: 2.29:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#8cba21 on black: 9.16:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green72.9%
Blue12.9%
CMYK percentages
Cyan24.7%
Magenta0.0%
Yellow82.3%
Key (black)27.1%
Color previews
#8cba21 text on a black background
contrast 9.16:1
Card sample
#8cba21 text on a white background
contrast 2.29:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8cba21;
Background color
Panel with #8cba21 background
background-color: #8cba21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8cba21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 186, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 186, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8cba21; background: linear-gradient(135deg, #8cba21, #26BA21);