#278b21
a dark, vivid green · cool · “forestgreen”
RGB
39, 139, 33
HSL
117°, 62%, 34%
CMYK
72, 0, 76, 46
Luminance
0.1901
Every format
| HEX | #278b21 |
| RGB | rgb(39, 139, 33) |
| HSL | hsl(117, 62%, 34%) |
| CMYK | cmyk(72%, 0%, 76%, 46%) |
| LAB | lab(50.7 -48.8 45.5) |
| LCH | lch(50.7 66.7 137.0) |
| OKLCH | oklch(0.559 0.168 142.3) |
Copy-ready code
/* CSS */
color: #278b21;
background-color: #278b21;
/* Tailwind (arbitrary) */
class="text-[#278b21] bg-[#278b21]"
/* SCSS */
$brand: #278b21;
/* SwiftUI */
Color(red: 0.153, green: 0.545, blue: 0.129)
/* Android */
Color.parseColor("#278b21")Accessibility — WCAG contrast
Aa
#278b21 on white: 4.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#278b21 on black: 4.80:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.3%
Green54.5%
Blue12.9%
CMYK percentages
Cyan71.9%
Magenta0.0%
Yellow76.3%
Key (black)45.5%
Color previews
#278b21 text on a black background
contrast 4.80:1
Card sample
#278b21 text on a white background
contrast 4.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #278b21;
Background color
Panel with #278b21 background
background-color: #278b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #278b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(39, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(39, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #278b21; background: linear-gradient(135deg, #278b21, #218B62);