#309c32
a dark, vivid green · cool · closest name: forestgreen
RGB
48, 156, 50
HSL
121°, 53%, 40%
CMYK
69, 0, 68, 39
Luminance
0.2464
Every format
| HEX | #309c32 |
| RGB | rgb(48, 156, 50) |
| HSL | hsl(121, 53%, 40%) |
| CMYK | cmyk(69%, 0%, 68%, 39%) |
| LAB | lab(56.7 -51.4 45.1) |
| LCH | lch(56.7 68.3 138.8) |
| OKLCH | oklch(0.610 0.174 143.3) |
Copy-ready code
/* CSS */
color: #309c32;
background-color: #309c32;
/* Tailwind (arbitrary) */
class="text-[#309c32] bg-[#309c32]"
/* SCSS */
$brand: #309c32;
/* SwiftUI */
Color(red: 0.188, green: 0.612, blue: 0.196)
/* Android */
Color.parseColor("#309c32")Accessibility — WCAG contrast
Aa
#309c32 on white: 3.54:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#309c32 on black: 5.93:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green61.2%
Blue19.6%
CMYK percentages
Cyan69.2%
Magenta0.0%
Yellow67.9%
Key (black)38.8%
Color previews
#309c32 text on a black background
contrast 5.93:1
Card sample
#309c32 text on a white background
contrast 3.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #309c32;
Background color
Panel with #309c32 background
background-color: #309c32;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #309c32;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 156, 50, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 156, 50, 0.45);
Border & gradient
Gradient panel
border: 3px solid #309c32; background: linear-gradient(135deg, #309c32, #309C7A);