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