#9fa921
a dark, vivid yellow · cool · closest name: olive
RGB
159, 169, 33
HSL
64°, 67%, 40%
CMYK
6, 0, 81, 34
Luminance
0.3586
Every format
| HEX | #9fa921 |
| RGB | rgb(159, 169, 33) |
| HSL | hsl(64, 67%, 40%) |
| CMYK | cmyk(6%, 0%, 81%, 34%) |
| LAB | lab(66.4 -19.5 62.6) |
| LCH | lch(66.4 65.5 107.3) |
| OKLCH | oklch(0.704 0.149 114.0) |
Copy-ready code
/* CSS */
color: #9fa921;
background-color: #9fa921;
/* Tailwind (arbitrary) */
class="text-[#9fa921] bg-[#9fa921]"
/* SCSS */
$brand: #9fa921;
/* SwiftUI */
Color(red: 0.624, green: 0.663, blue: 0.129)
/* Android */
Color.parseColor("#9fa921")Accessibility — WCAG contrast
Aa
#9fa921 on white: 2.57:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#9fa921 on black: 8.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green66.3%
Blue12.9%
CMYK percentages
Cyan5.9%
Magenta0.0%
Yellow80.5%
Key (black)33.7%
Color previews
#9fa921 text on a black background
contrast 8.17:1
Card sample
#9fa921 text on a white background
contrast 2.57:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9fa921;
Background color
Panel with #9fa921 background
background-color: #9fa921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9fa921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 169, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 169, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9fa921; background: linear-gradient(135deg, #9fa921, #44A921);