#0caf21
a dark, electric green · cool · closest name: green
RGB
12, 175, 33
HSL
128°, 87%, 37%
CMYK
93, 0, 81, 31
Luminance
0.3085
Every format
| HEX | #0caf21 |
| RGB | rgb(12, 175, 33) |
| HSL | hsl(128, 87%, 37%) |
| CMYK | cmyk(93%, 0%, 81%, 31%) |
| LAB | lab(62.4 -63.2 56.7) |
| LCH | lch(62.4 84.9 138.1) |
| OKLCH | oklch(0.655 0.212 143.5) |
Copy-ready code
/* CSS */
color: #0caf21;
background-color: #0caf21;
/* Tailwind (arbitrary) */
class="text-[#0caf21] bg-[#0caf21]"
/* SCSS */
$brand: #0caf21;
/* SwiftUI */
Color(red: 0.047, green: 0.686, blue: 0.129)
/* Android */
Color.parseColor("#0caf21")Accessibility — WCAG contrast
Aa
#0caf21 on white: 2.93:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#0caf21 on black: 7.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green68.6%
Blue12.9%
CMYK percentages
Cyan93.1%
Magenta0.0%
Yellow81.1%
Key (black)31.4%
Color previews
#0caf21 text on a black background
contrast 7.17:1
Card sample
#0caf21 text on a white background
contrast 2.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0caf21;
Background color
Panel with #0caf21 background
background-color: #0caf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0caf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 175, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 175, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0caf21; background: linear-gradient(135deg, #0caf21, #0CAF8E);