#28c511
a dark, electric green · cool · closest name: lime
RGB
40, 197, 17
HSL
112°, 84%, 42%
CMYK
80, 0, 91, 23
Luminance
0.4042
Every format
| HEX | #28c511 |
| RGB | rgb(40, 197, 17) |
| HSL | hsl(112, 84%, 42%) |
| CMYK | cmyk(80%, 0%, 91%, 23%) |
| LAB | lab(69.8 -67.7 66.9) |
| LCH | lch(69.8 95.2 135.3) |
| OKLCH | oklch(0.717 0.235 141.7) |
Copy-ready code
/* CSS */
color: #28c511;
background-color: #28c511;
/* Tailwind (arbitrary) */
class="text-[#28c511] bg-[#28c511]"
/* SCSS */
$brand: #28c511;
/* SwiftUI */
Color(red: 0.157, green: 0.773, blue: 0.067)
/* Android */
Color.parseColor("#28c511")Accessibility — WCAG contrast
Aa
#28c511 on white: 2.31:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#28c511 on black: 9.08:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green77.3%
Blue6.7%
CMYK percentages
Cyan79.7%
Magenta0.0%
Yellow91.4%
Key (black)22.7%
Color previews
#28c511 text on a black background
contrast 9.08:1
Card sample
#28c511 text on a white background
contrast 2.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #28c511;
Background color
Panel with #28c511 background
background-color: #28c511;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #28c511;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 197, 17, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 197, 17, 0.45);
Border & gradient
Gradient panel
border: 3px solid #28c511; background: linear-gradient(135deg, #28c511, #11C572);