#178b21
a dark, vivid green · cool · “forestgreen”
RGB
23, 139, 33
HSL
125°, 72%, 32%
CMYK
84, 0, 76, 46
Luminance
0.1876
Every format
| HEX | #178b21 |
| RGB | rgb(23, 139, 33) |
| HSL | hsl(125, 72%, 32%) |
| CMYK | cmyk(84%, 0%, 76%, 46%) |
| LAB | lab(50.4 -51.3 45.1) |
| LCH | lch(50.4 68.3 138.6) |
| OKLCH | oklch(0.556 0.172 143.7) |
Copy-ready code
/* CSS */
color: #178b21;
background-color: #178b21;
/* Tailwind (arbitrary) */
class="text-[#178b21] bg-[#178b21]"
/* SCSS */
$brand: #178b21;
/* SwiftUI */
Color(red: 0.090, green: 0.545, blue: 0.129)
/* Android */
Color.parseColor("#178b21")Accessibility — WCAG contrast
Aa
#178b21 on white: 4.42:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#178b21 on black: 4.75:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red9.0%
Green54.5%
Blue12.9%
CMYK percentages
Cyan83.5%
Magenta0.0%
Yellow76.3%
Key (black)45.5%
Color previews
#178b21 text on a black background
contrast 4.75:1
Card sample
#178b21 text on a white background
contrast 4.42:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #178b21;
Background color
Panel with #178b21 background
background-color: #178b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #178b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(23, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #178b21; background: linear-gradient(135deg, #178b21, #178B6F);