#9ba921
a dark, vivid yellow · cool · closest name: olive
RGB
155, 169, 33
HSL
66°, 67%, 40%
CMYK
8, 0, 81, 34
Luminance
0.3545
Every format
| HEX | #9ba921 |
| RGB | rgb(155, 169, 33) |
| HSL | hsl(66, 67%, 40%) |
| CMYK | cmyk(8%, 0%, 81%, 34%) |
| LAB | lab(66.1 -21.3 62.2) |
| LCH | lch(66.1 65.7 108.9) |
| OKLCH | oklch(0.701 0.150 115.7) |
Copy-ready code
/* CSS */
color: #9ba921;
background-color: #9ba921;
/* Tailwind (arbitrary) */
class="text-[#9ba921] bg-[#9ba921]"
/* SCSS */
$brand: #9ba921;
/* SwiftUI */
Color(red: 0.608, green: 0.663, blue: 0.129)
/* Android */
Color.parseColor("#9ba921")Accessibility — WCAG contrast
Aa
#9ba921 on white: 2.60:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#9ba921 on black: 8.09:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red60.8%
Green66.3%
Blue12.9%
CMYK percentages
Cyan8.3%
Magenta0.0%
Yellow80.5%
Key (black)33.7%
Color previews
#9ba921 text on a black background
contrast 8.09:1
Card sample
#9ba921 text on a white background
contrast 2.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9ba921;
Background color
Panel with #9ba921 background
background-color: #9ba921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9ba921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(155, 169, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(155, 169, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9ba921; background: linear-gradient(135deg, #9ba921, #40A921);