#a6c310
a dark, electric yellow · cool · closest name: olivedrab
RGB
166, 195, 16
HSL
70°, 85%, 41%
CMYK
15, 0, 92, 24
Luminance
0.4717
Every format
| HEX | #a6c310 |
| RGB | rgb(166, 195, 16) |
| HSL | hsl(70, 85%, 41%) |
| CMYK | cmyk(15%, 0%, 92%, 24%) |
| LAB | lab(74.3 -29.7 72.9) |
| LCH | lch(74.3 78.7 112.2) |
| OKLCH | oklch(0.768 0.179 120.0) |
Copy-ready code
/* CSS */
color: #a6c310;
background-color: #a6c310;
/* Tailwind (arbitrary) */
class="text-[#a6c310] bg-[#a6c310]"
/* SCSS */
$brand: #a6c310;
/* SwiftUI */
Color(red: 0.651, green: 0.765, blue: 0.063)
/* Android */
Color.parseColor("#a6c310")Accessibility — WCAG contrast
Aa
#a6c310 on white: 2.01:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#a6c310 on black: 10.43:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red65.1%
Green76.5%
Blue6.3%
CMYK percentages
Cyan14.9%
Magenta0.0%
Yellow91.8%
Key (black)23.5%
Color previews
#a6c310 text on a black background
contrast 10.43:1
Card sample
#a6c310 text on a white background
contrast 2.01:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a6c310;
Background color
Panel with #a6c310 background
background-color: #a6c310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a6c310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(166, 195, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(166, 195, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a6c310; background: linear-gradient(135deg, #a6c310, #2FC310);