#9fab21
a dark, vivid yellow · cool · closest name: olive
RGB
159, 171, 33
HSL
65°, 68%, 40%
CMYK
7, 0, 81, 33
Luminance
0.3661
Every format
| HEX | #9fab21 |
| RGB | rgb(159, 171, 33) |
| HSL | hsl(65, 68%, 40%) |
| CMYK | cmyk(7%, 0%, 81%, 33%) |
| LAB | lab(67.0 -20.5 63.1) |
| LCH | lch(67.0 66.3 108.0) |
| OKLCH | oklch(0.708 0.151 114.8) |
Copy-ready code
/* CSS */
color: #9fab21;
background-color: #9fab21;
/* Tailwind (arbitrary) */
class="text-[#9fab21] bg-[#9fab21]"
/* SCSS */
$brand: #9fab21;
/* SwiftUI */
Color(red: 0.624, green: 0.671, blue: 0.129)
/* Android */
Color.parseColor("#9fab21")Accessibility — WCAG contrast
Aa
#9fab21 on white: 2.52:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#9fab21 on black: 8.32:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green67.1%
Blue12.9%
CMYK percentages
Cyan7.0%
Magenta0.0%
Yellow80.7%
Key (black)32.9%
Color previews
#9fab21 text on a black background
contrast 8.32:1
Card sample
#9fab21 text on a white background
contrast 2.52:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9fab21;
Background color
Panel with #9fab21 background
background-color: #9fab21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9fab21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9fab21; background: linear-gradient(135deg, #9fab21, #43AB21);