#1b7828
a dark, vivid green · cool · closest name: forestgreen
RGB
27, 120, 40
HSL
128°, 63%, 29%
CMYK
78, 0, 67, 53
Luminance
0.1382
Every format
| HEX | #1b7828 |
| RGB | rgb(27, 120, 40) |
| HSL | hsl(128, 63%, 29%) |
| CMYK | cmyk(78%, 0%, 67%, 53%) |
| LAB | lab(44.0 -43.5 35.4) |
| LCH | lch(44.0 56.1 140.9) |
| OKLCH | oklch(0.503 0.144 145.0) |
Copy-ready code
/* CSS */
color: #1b7828;
background-color: #1b7828;
/* Tailwind (arbitrary) */
class="text-[#1b7828] bg-[#1b7828]"
/* SCSS */
$brand: #1b7828;
/* SwiftUI */
Color(red: 0.106, green: 0.471, blue: 0.157)
/* Android */
Color.parseColor("#1b7828")Accessibility — WCAG contrast
Aa
#1b7828 on white: 5.58:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#1b7828 on black: 3.76:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red10.6%
Green47.1%
Blue15.7%
CMYK percentages
Cyan77.5%
Magenta0.0%
Yellow66.7%
Key (black)52.9%
Color previews
#1b7828 text on a black background
contrast 3.76:1
Card sample
#1b7828 text on a white background
contrast 5.58:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #1b7828;
Background color
Panel with #1b7828 background
background-color: #1b7828;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #1b7828;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(27, 120, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(27, 120, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1b7828; background: linear-gradient(135deg, #1b7828, #1B7866);