#0c7f21
a dark, electric green · cool · closest name: forestgreen
RGB
12, 127, 33
HSL
131°, 83%, 27%
CMYK
91, 0, 74, 50
Luminance
0.1537
Every format
| HEX | #0c7f21 |
| RGB | rgb(12, 127, 33) |
| HSL | hsl(131, 83%, 27%) |
| CMYK | cmyk(91%, 0%, 74%, 50%) |
| LAB | lab(46.1 -48.5 40.7) |
| LCH | lch(46.1 63.4 140.0) |
| OKLCH | oklch(0.520 0.161 144.7) |
Copy-ready code
/* CSS */
color: #0c7f21;
background-color: #0c7f21;
/* Tailwind (arbitrary) */
class="text-[#0c7f21] bg-[#0c7f21]"
/* SCSS */
$brand: #0c7f21;
/* SwiftUI */
Color(red: 0.047, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#0c7f21")Accessibility — WCAG contrast
Aa
#0c7f21 on white: 5.16:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#0c7f21 on black: 4.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green49.8%
Blue12.9%
CMYK percentages
Cyan90.6%
Magenta0.0%
Yellow74.0%
Key (black)50.2%
Color previews
#0c7f21 text on a black background
contrast 4.07:1
Card sample
#0c7f21 text on a white background
contrast 5.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0c7f21;
Background color
Panel with #0c7f21 background
background-color: #0c7f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0c7f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c7f21; background: linear-gradient(135deg, #0c7f21, #0C7F6E);