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