#186b18
a dark, vivid green · cool · closest name: forestgreen
RGB
24, 107, 24
HSL
120°, 63%, 26%
CMYK
78, 0, 78, 58
Luminance
0.1078
Every format
| HEX | #186b18 |
| RGB | rgb(24, 107, 24) |
| HSL | hsl(120, 63%, 26%) |
| CMYK | cmyk(78%, 0%, 78%, 58%) |
| LAB | lab(39.2 -41.1 37.3) |
| LCH | lch(39.2 55.5 137.8) |
| OKLCH | oklch(0.462 0.140 142.9) |
Copy-ready code
/* CSS */
color: #186b18;
background-color: #186b18;
/* Tailwind (arbitrary) */
class="text-[#186b18] bg-[#186b18]"
/* SCSS */
$brand: #186b18;
/* SwiftUI */
Color(red: 0.094, green: 0.420, blue: 0.094)
/* Android */
Color.parseColor("#186b18")Accessibility — WCAG contrast
Aa
#186b18 on white: 6.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#186b18 on black: 3.16:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red9.4%
Green42.0%
Blue9.4%
CMYK percentages
Cyan77.6%
Magenta0.0%
Yellow77.6%
Key (black)58.0%
Color previews
#186b18 text on a black background
contrast 3.16:1
Card sample
#186b18 text on a white background
contrast 6.66:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #186b18;
Background color
Panel with #186b18 background
background-color: #186b18;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #186b18;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(24, 107, 24, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(24, 107, 24, 0.45);
Border & gradient
Gradient panel
border: 3px solid #186b18; background: linear-gradient(135deg, #186b18, #186B4F);