#0c7c0c
a dark, electric green · cool · closest name: green
RGB
12, 124, 12
HSL
120°, 82%, 27%
CMYK
90, 0, 90, 51
Luminance
0.1452
Every format
| HEX | #0c7c0c |
| RGB | rgb(12, 124, 12) |
| HSL | hsl(120, 82%, 27%) |
| CMYK | cmyk(90%, 0%, 90%, 51%) |
| LAB | lab(45.0 -49.0 46.4) |
| LCH | lch(45.0 67.5 136.6) |
| OKLCH | oklch(0.510 0.168 142.6) |
Copy-ready code
/* CSS */
color: #0c7c0c;
background-color: #0c7c0c;
/* Tailwind (arbitrary) */
class="text-[#0c7c0c] bg-[#0c7c0c]"
/* SCSS */
$brand: #0c7c0c;
/* SwiftUI */
Color(red: 0.047, green: 0.486, blue: 0.047)
/* Android */
Color.parseColor("#0c7c0c")Accessibility — WCAG contrast
Aa
#0c7c0c on white: 5.38:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#0c7c0c on black: 3.90:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green48.6%
Blue4.7%
CMYK percentages
Cyan90.3%
Magenta0.0%
Yellow90.3%
Key (black)51.4%
Color previews
#0c7c0c text on a black background
contrast 3.90:1
Card sample
#0c7c0c text on a white background
contrast 5.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0c7c0c;
Background color
Panel with #0c7c0c background
background-color: #0c7c0c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0c7c0c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 124, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 124, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c7c0c; background: linear-gradient(135deg, #0c7c0c, #0C7C57);