#a2ac28
a dark, vivid yellow · cool · closest name: olive
RGB
162, 172, 40
HSL
65°, 62%, 42%
CMYK
6, 0, 77, 33
Luminance
0.3734
Every format
| HEX | #a2ac28 |
| RGB | rgb(162, 172, 40) |
| HSL | hsl(65, 62%, 42%) |
| CMYK | cmyk(6%, 0%, 77%, 33%) |
| LAB | lab(67.5 -19.5 61.6) |
| LCH | lch(67.5 64.6 107.6) |
| OKLCH | oklch(0.713 0.148 114.0) |
Copy-ready code
/* CSS */
color: #a2ac28;
background-color: #a2ac28;
/* Tailwind (arbitrary) */
class="text-[#a2ac28] bg-[#a2ac28]"
/* SCSS */
$brand: #a2ac28;
/* SwiftUI */
Color(red: 0.635, green: 0.675, blue: 0.157)
/* Android */
Color.parseColor("#a2ac28")Accessibility — WCAG contrast
Aa
#a2ac28 on white: 2.48:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#a2ac28 on black: 8.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.5%
Green67.5%
Blue15.7%
CMYK percentages
Cyan5.8%
Magenta0.0%
Yellow76.7%
Key (black)32.5%
Color previews
#a2ac28 text on a black background
contrast 8.47:1
Card sample
#a2ac28 text on a white background
contrast 2.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a2ac28;
Background color
Panel with #a2ac28 background
background-color: #a2ac28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a2ac28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(162, 172, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 172, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a2ac28; background: linear-gradient(135deg, #a2ac28, #4AAC28);