#51c01b
a dark, electric green · cool · closest name: green
RGB
81, 192, 27
HSL
100°, 75%, 43%
CMYK
58, 0, 86, 25
Luminance
0.3953
Every format
| HEX | #51c01b |
| RGB | rgb(81, 192, 27) |
| HSL | hsl(100, 75%, 43%) |
| CMYK | cmyk(58%, 0%, 86%, 25%) |
| LAB | lab(69.1 -57.9 64.8) |
| LCH | lch(69.1 86.9 131.8) |
| OKLCH | oklch(0.715 0.214 138.5) |
Copy-ready code
/* CSS */
color: #51c01b;
background-color: #51c01b;
/* Tailwind (arbitrary) */
class="text-[#51c01b] bg-[#51c01b]"
/* SCSS */
$brand: #51c01b;
/* SwiftUI */
Color(red: 0.318, green: 0.753, blue: 0.106)
/* Android */
Color.parseColor("#51c01b")Accessibility — WCAG contrast
Aa
#51c01b on white: 2.36:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#51c01b on black: 8.91:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green75.3%
Blue10.6%
CMYK percentages
Cyan57.8%
Magenta0.0%
Yellow85.9%
Key (black)24.7%
Color previews
#51c01b text on a black background
contrast 8.91:1
Card sample
#51c01b text on a white background
contrast 2.36:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #51c01b;
Background color
Panel with #51c01b background
background-color: #51c01b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #51c01b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 192, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 192, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #51c01b; background: linear-gradient(135deg, #51c01b, #1BC053);