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