#308f0c
a dark, electric green · cool · closest name: green
RGB
48, 143, 12
HSL
104°, 85%, 30%
CMYK
66, 0, 92, 44
Luminance
0.2030
Every format
| HEX | #308f0c |
| RGB | rgb(48, 143, 12) |
| HSL | hsl(104, 85%, 30%) |
| CMYK | cmyk(66%, 0%, 92%, 44%) |
| LAB | lab(52.2 -49.4 52.9) |
| LCH | lch(52.2 72.4 133.1) |
| OKLCH | oklch(0.572 0.178 139.7) |
Copy-ready code
/* CSS */
color: #308f0c;
background-color: #308f0c;
/* Tailwind (arbitrary) */
class="text-[#308f0c] bg-[#308f0c]"
/* SCSS */
$brand: #308f0c;
/* SwiftUI */
Color(red: 0.188, green: 0.561, blue: 0.047)
/* Android */
Color.parseColor("#308f0c")Accessibility — WCAG contrast
Aa
#308f0c on white: 4.15:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#308f0c on black: 5.06:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green56.1%
Blue4.7%
CMYK percentages
Cyan66.4%
Magenta0.0%
Yellow91.6%
Key (black)43.9%
Color previews
#308f0c text on a black background
contrast 5.06:1
Card sample
#308f0c text on a white background
contrast 4.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #308f0c;
Background color
Panel with #308f0c background
background-color: #308f0c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #308f0c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 143, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 143, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #308f0c; background: linear-gradient(135deg, #308f0c, #0C8F3F);