#a1b310
a dark, electric yellow · cool · closest name: olive
RGB
161, 179, 16
HSL
67°, 84%, 38%
CMYK
10, 0, 91, 30
Luminance
0.3985
Every format
| HEX | #a1b310 |
| RGB | rgb(161, 179, 16) |
| HSL | hsl(67, 84%, 38%) |
| CMYK | cmyk(10%, 0%, 91%, 30%) |
| LAB | lab(69.4 -24.1 68.8) |
| LCH | lch(69.4 72.9 109.3) |
| OKLCH | oklch(0.728 0.164 116.8) |
Copy-ready code
/* CSS */
color: #a1b310;
background-color: #a1b310;
/* Tailwind (arbitrary) */
class="text-[#a1b310] bg-[#a1b310]"
/* SCSS */
$brand: #a1b310;
/* SwiftUI */
Color(red: 0.631, green: 0.702, blue: 0.063)
/* Android */
Color.parseColor("#a1b310")Accessibility — WCAG contrast
Aa
#a1b310 on white: 2.34:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#a1b310 on black: 8.97:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.1%
Green70.2%
Blue6.3%
CMYK percentages
Cyan10.1%
Magenta0.0%
Yellow91.1%
Key (black)29.8%
Color previews
#a1b310 text on a black background
contrast 8.97:1
Card sample
#a1b310 text on a white background
contrast 2.34:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a1b310;
Background color
Panel with #a1b310 background
background-color: #a1b310;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a1b310;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(161, 179, 16, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(161, 179, 16, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a1b310; background: linear-gradient(135deg, #a1b310, #34B310);