#ab9e21
a dark, vivid yellow · cool · closest name: olive
RGB
171, 158, 33
HSL
54°, 68%, 40%
CMYK
0, 8, 81, 33
Luminance
0.3322
Every format
| HEX | #ab9e21 |
| RGB | rgb(171, 158, 33) |
| HSL | hsl(54, 68%, 40%) |
| CMYK | cmyk(0%, 8%, 81%, 33%) |
| LAB | lab(64.3 -8.5 61.1) |
| LCH | lch(64.3 61.7 98.0) |
| OKLCH | oklch(0.690 0.136 103.0) |
Copy-ready code
/* CSS */
color: #ab9e21;
background-color: #ab9e21;
/* Tailwind (arbitrary) */
class="text-[#ab9e21] bg-[#ab9e21]"
/* SCSS */
$brand: #ab9e21;
/* SwiftUI */
Color(red: 0.671, green: 0.620, blue: 0.129)
/* Android */
Color.parseColor("#ab9e21")Accessibility — WCAG contrast
Aa
#ab9e21 on white: 2.75:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ab9e21 on black: 7.64:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.1%
Green62.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta7.6%
Yellow80.7%
Key (black)32.9%
Color previews
#ab9e21 text on a black background
contrast 7.64:1
Card sample
#ab9e21 text on a white background
contrast 2.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ab9e21;
Background color
Panel with #ab9e21 background
background-color: #ab9e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ab9e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(171, 158, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 158, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab9e21; background: linear-gradient(135deg, #ab9e21, #5CAB21);