#0c4521
a deep, vivid green · cool · closest name: darkslategray
RGB
12, 69, 33
HSL
142°, 70%, 16%
CMYK
83, 0, 52, 73
Luminance
0.0444
Every format
| HEX | #0c4521 |
| RGB | rgb(12, 69, 33) |
| HSL | hsl(142, 70%, 16%) |
| CMYK | cmyk(83%, 0%, 52%, 73%) |
| LAB | lab(25.1 -27.3 16.7) |
| LCH | lch(25.1 32.0 148.6) |
| OKLCH | oklch(0.345 0.084 150.9) |
Copy-ready code
/* CSS */
color: #0c4521;
background-color: #0c4521;
/* Tailwind (arbitrary) */
class="text-[#0c4521] bg-[#0c4521]"
/* SCSS */
$brand: #0c4521;
/* SwiftUI */
Color(red: 0.047, green: 0.271, blue: 0.129)
/* Android */
Color.parseColor("#0c4521")Accessibility — WCAG contrast
Aa
#0c4521 on white: 11.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0c4521 on black: 1.89:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green27.1%
Blue12.9%
CMYK percentages
Cyan82.6%
Magenta0.0%
Yellow52.2%
Key (black)72.9%
Color previews
#0c4521 text on a black background
contrast 1.89:1
Card sample
#0c4521 text on a white background
contrast 11.12:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0c4521;
Background color
Panel with #0c4521 background
background-color: #0c4521;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0c4521;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 69, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 69, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c4521; background: linear-gradient(135deg, #0c4521, #0C4345);