#ab8921
a dark, vivid yellow · cool · closest name: olive
RGB
171, 137, 33
HSL
45°, 68%, 40%
CMYK
0, 20, 81, 33
Luminance
0.2666
Every format
| HEX | #ab8921 |
| RGB | rgb(171, 137, 33) |
| HSL | hsl(45, 68%, 40%) |
| CMYK | cmyk(0%, 20%, 81%, 33%) |
| LAB | lab(58.7 2.8 56.1) |
| LCH | lch(58.7 56.2 87.1) |
| OKLCH | oklch(0.645 0.121 89.3) |
Copy-ready code
/* CSS */
color: #ab8921;
background-color: #ab8921;
/* Tailwind (arbitrary) */
class="text-[#ab8921] bg-[#ab8921]"
/* SCSS */
$brand: #ab8921;
/* SwiftUI */
Color(red: 0.671, green: 0.537, blue: 0.129)
/* Android */
Color.parseColor("#ab8921")Accessibility — WCAG contrast
Aa
#ab8921 on white: 3.32:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ab8921 on black: 6.33:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green53.7%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta19.9%
Yellow80.7%
Key (black)32.9%
Color previews
#ab8921 text on a black background
contrast 6.33:1
Card sample
#ab8921 text on a white background
contrast 3.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab8921;
Background color
Panel with #ab8921 background
background-color: #ab8921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab8921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 137, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 137, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab8921; background: linear-gradient(135deg, #ab8921, #71AB21);