#a2c310
a dark, electric green · cool · closest name: olivedrab
RGB
162, 195, 16
HSL
71°, 85%, 41%
CMYK
17, 0, 92, 24
Luminance
0.4675
Every format
| HEX | #a2c310 |
| RGB | rgb(162, 195, 16) |
| HSL | hsl(71, 85%, 41%) |
| CMYK | cmyk(17%, 0%, 92%, 24%) |
| LAB | lab(74.0 -31.4 72.5) |
| LCH | lch(74.0 79.0 113.4) |
| OKLCH | oklch(0.765 0.181 121.2) |
Copy-ready code
/* CSS */
color: #a2c310;
background-color: #a2c310;
/* Tailwind (arbitrary) */
class="text-[#a2c310] bg-[#a2c310]"
/* SCSS */
$brand: #a2c310;
/* SwiftUI */
Color(red: 0.635, green: 0.765, blue: 0.063)
/* Android */
Color.parseColor("#a2c310")Accessibility — WCAG contrast
Aa
#a2c310 on white: 2.03:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#a2c310 on black: 10.35:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.5%
Green76.5%
Blue6.3%
CMYK percentages
Cyan16.9%
Magenta0.0%
Yellow91.8%
Key (black)23.5%
Color previews
#a2c310 text on a black background
contrast 10.35:1
Card sample
#a2c310 text on a white background
contrast 2.03:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a2c310;
Background color
Panel with #a2c310 background
background-color: #a2c310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a2c310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(162, 195, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 195, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2c310; background: linear-gradient(135deg, #a2c310, #2BC310);