#a8ac21
a dark, vivid yellow · cool · closest name: olive
RGB
168, 172, 33
HSL
62°, 68%, 40%
CMYK
2, 0, 81, 33
Luminance
0.3794
Every format
| HEX | #a8ac21 |
| RGB | rgb(168, 172, 33) |
| HSL | hsl(62, 68%, 40%) |
| CMYK | cmyk(2%, 0%, 81%, 33%) |
| LAB | lab(68.0 -17.1 64.2) |
| LCH | lch(68.0 66.5 104.9) |
| OKLCH | oklch(0.718 0.149 111.4) |
Copy-ready code
/* CSS */
color: #a8ac21;
background-color: #a8ac21;
/* Tailwind (arbitrary) */
class="text-[#a8ac21] bg-[#a8ac21]"
/* SCSS */
$brand: #a8ac21;
/* SwiftUI */
Color(red: 0.659, green: 0.675, blue: 0.129)
/* Android */
Color.parseColor("#a8ac21")Accessibility — WCAG contrast
Aa
#a8ac21 on white: 2.45:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#a8ac21 on black: 8.59:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red65.9%
Green67.5%
Blue12.9%
CMYK percentages
Cyan2.3%
Magenta0.0%
Yellow80.8%
Key (black)32.5%
Color previews
#a8ac21 text on a black background
contrast 8.59:1
Card sample
#a8ac21 text on a white background
contrast 2.45:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a8ac21;
Background color
Panel with #a8ac21 background
background-color: #a8ac21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a8ac21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(168, 172, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(168, 172, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a8ac21; background: linear-gradient(135deg, #a8ac21, #4BAC21);