#8a9921
a dark, vivid yellow · cool · closest name: olive
RGB
138, 153, 33
HSL
68°, 65%, 37%
CMYK
10, 0, 78, 40
Luminance
0.2830
Every format
| HEX | #8a9921 |
| RGB | rgb(138, 153, 33) |
| HSL | hsl(68, 65%, 37%) |
| CMYK | cmyk(10%, 0%, 78%, 40%) |
| LAB | lab(60.2 -20.6 56.3) |
| LCH | lch(60.2 60.0 110.1) |
| OKLCH | oklch(0.649 0.138 116.8) |
Copy-ready code
/* CSS */
color: #8a9921;
background-color: #8a9921;
/* Tailwind (arbitrary) */
class="text-[#8a9921] bg-[#8a9921]"
/* SCSS */
$brand: #8a9921;
/* SwiftUI */
Color(red: 0.541, green: 0.600, blue: 0.129)
/* Android */
Color.parseColor("#8a9921")Accessibility — WCAG contrast
Aa
#8a9921 on white: 3.15:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8a9921 on black: 6.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.1%
Green60.0%
Blue12.9%
CMYK percentages
Cyan9.8%
Magenta0.0%
Yellow78.4%
Key (black)40.0%
Color previews
#8a9921 text on a black background
contrast 6.66:1
Card sample
#8a9921 text on a white background
contrast 3.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8a9921;
Background color
Panel with #8a9921 background
background-color: #8a9921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8a9921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(138, 153, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 153, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8a9921; background: linear-gradient(135deg, #8a9921, #3A9921);