#308a21
a dark, vivid green · cool · closest name: forestgreen
RGB
48, 138, 33
HSL
111°, 61%, 34%
CMYK
65, 0, 76, 46
Luminance
0.1892
Every format
| HEX | #308a21 |
| RGB | rgb(48, 138, 33) |
| HSL | hsl(111, 61%, 34%) |
| CMYK | cmyk(65%, 0%, 76%, 46%) |
| LAB | lab(50.6 -46.5 45.5) |
| LCH | lch(50.6 65.0 135.6) |
| OKLCH | oklch(0.559 0.163 141.1) |
Copy-ready code
/* CSS */
color: #308a21;
background-color: #308a21;
/* Tailwind (arbitrary) */
class="text-[#308a21] bg-[#308a21]"
/* SCSS */
$brand: #308a21;
/* SwiftUI */
Color(red: 0.188, green: 0.541, blue: 0.129)
/* Android */
Color.parseColor("#308a21")Accessibility — WCAG contrast
Aa
#308a21 on white: 4.39:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#308a21 on black: 4.78:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green54.1%
Blue12.9%
CMYK percentages
Cyan65.2%
Magenta0.0%
Yellow76.1%
Key (black)45.9%
Color previews
#308a21 text on a black background
contrast 4.78:1
Card sample
#308a21 text on a white background
contrast 4.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #308a21;
Background color
Panel with #308a21 background
background-color: #308a21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #308a21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 138, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 138, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #308a21; background: linear-gradient(135deg, #308a21, #218A58);