#1ba40c
a dark, electric green · cool · closest name: green
RGB
27, 164, 12
HSL
114°, 86%, 35%
CMYK
84, 0, 93, 36
Luminance
0.2681
Every format
| HEX | #1ba40c |
| RGB | rgb(27, 164, 12) |
| HSL | hsl(114, 86%, 35%) |
| CMYK | cmyk(84%, 0%, 93%, 36%) |
| LAB | lab(58.8 -59.6 58.3) |
| LCH | lch(58.8 83.4 135.6) |
| OKLCH | oklch(0.625 0.206 142.0) |
Copy-ready code
/* CSS */
color: #1ba40c;
background-color: #1ba40c;
/* Tailwind (arbitrary) */
class="text-[#1ba40c] bg-[#1ba40c]"
/* SCSS */
$brand: #1ba40c;
/* SwiftUI */
Color(red: 0.106, green: 0.643, blue: 0.047)
/* Android */
Color.parseColor("#1ba40c")Accessibility — WCAG contrast
Aa
#1ba40c on white: 3.30:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#1ba40c on black: 6.36:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red10.6%
Green64.3%
Blue4.7%
CMYK percentages
Cyan83.5%
Magenta0.0%
Yellow92.7%
Key (black)35.7%
Color previews
#1ba40c text on a black background
contrast 6.36:1
Card sample
#1ba40c text on a white background
contrast 3.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #1ba40c;
Background color
Panel with #1ba40c background
background-color: #1ba40c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #1ba40c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(27, 164, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(27, 164, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1ba40c; background: linear-gradient(135deg, #1ba40c, #0CA462);