#0cd451
a dark, electric green · cool · closest name: forestgreen
RGB
12, 212, 81
HSL
141°, 89%, 44%
CMYK
94, 0, 62, 17
Luminance
0.4776
Every format
| HEX | #0cd451 |
| RGB | rgb(12, 212, 81) |
| HSL | hsl(141, 89%, 44%) |
| CMYK | cmyk(94%, 0%, 62%, 17%) |
| LAB | lab(74.7 -69.7 51.5) |
| LCH | lch(74.7 86.7 143.5) |
| OKLCH | oklch(0.759 0.223 147.1) |
Copy-ready code
/* CSS */
color: #0cd451;
background-color: #0cd451;
/* Tailwind (arbitrary) */
class="text-[#0cd451] bg-[#0cd451]"
/* SCSS */
$brand: #0cd451;
/* SwiftUI */
Color(red: 0.047, green: 0.831, blue: 0.318)
/* Android */
Color.parseColor("#0cd451")Accessibility — WCAG contrast
Aa
#0cd451 on white: 1.99:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#0cd451 on black: 10.55:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green83.1%
Blue31.8%
CMYK percentages
Cyan94.3%
Magenta0.0%
Yellow61.8%
Key (black)16.9%
Color previews
#0cd451 text on a black background
contrast 10.55:1
Card sample
#0cd451 text on a white background
contrast 1.99:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0cd451;
Background color
Panel with #0cd451 background
background-color: #0cd451;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0cd451;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 212, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 212, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0cd451; background: linear-gradient(135deg, #0cd451, #0CD2D4);