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