#a8b721
a dark, vivid yellow · cool · closest name: olive
RGB
168, 183, 33
HSL
66°, 69%, 42%
CMYK
8, 0, 82, 28
Luminance
0.4230
Every format
| HEX | #a8b721 |
| RGB | rgb(168, 183, 33) |
| HSL | hsl(66, 69%, 42%) |
| CMYK | cmyk(8%, 0%, 82%, 28%) |
| LAB | lab(71.1 -22.6 66.9) |
| LCH | lch(71.1 70.6 108.7) |
| OKLCH | oklch(0.743 0.161 115.7) |
Copy-ready code
/* CSS */
color: #a8b721;
background-color: #a8b721;
/* Tailwind (arbitrary) */
class="text-[#a8b721] bg-[#a8b721]"
/* SCSS */
$brand: #a8b721;
/* SwiftUI */
Color(red: 0.659, green: 0.718, blue: 0.129)
/* Android */
Color.parseColor("#a8b721")Accessibility — WCAG contrast
Aa
#a8b721 on white: 2.22:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#a8b721 on black: 9.46:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red65.9%
Green71.8%
Blue12.9%
CMYK percentages
Cyan8.2%
Magenta0.0%
Yellow82.0%
Key (black)28.2%
Color previews
#a8b721 text on a black background
contrast 9.46:1
Card sample
#a8b721 text on a white background
contrast 2.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a8b721;
Background color
Panel with #a8b721 background
background-color: #a8b721;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a8b721;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(168, 183, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(168, 183, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a8b721; background: linear-gradient(135deg, #a8b721, #44B721);