#9fa821
a dark, vivid yellow · cool · closest name: olive
RGB
159, 168, 33
HSL
64°, 67%, 39%
CMYK
5, 0, 80, 34
Luminance
0.3549
Every format
| HEX | #9fa821 |
| RGB | rgb(159, 168, 33) |
| HSL | hsl(64, 67%, 39%) |
| CMYK | cmyk(5%, 0%, 80%, 34%) |
| LAB | lab(66.1 -19.0 62.3) |
| LCH | lch(66.1 65.2 107.0) |
| OKLCH | oklch(0.702 0.148 113.6) |
Copy-ready code
/* CSS */
color: #9fa821;
background-color: #9fa821;
/* Tailwind (arbitrary) */
class="text-[#9fa821] bg-[#9fa821]"
/* SCSS */
$brand: #9fa821;
/* SwiftUI */
Color(red: 0.624, green: 0.659, blue: 0.129)
/* Android */
Color.parseColor("#9fa821")Accessibility — WCAG contrast
Aa
#9fa821 on white: 2.59:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#9fa821 on black: 8.10:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green65.9%
Blue12.9%
CMYK percentages
Cyan5.4%
Magenta0.0%
Yellow80.4%
Key (black)34.1%
Color previews
#9fa821 text on a black background
contrast 8.10:1
Card sample
#9fa821 text on a white background
contrast 2.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9fa821;
Background color
Panel with #9fa821 background
background-color: #9fa821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9fa821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 168, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 168, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9fa821; background: linear-gradient(135deg, #9fa821, #45A821);