#9eac21
a dark, vivid yellow · cool · closest name: olive
RGB
158, 172, 33
HSL
66°, 68%, 40%
CMYK
8, 0, 81, 33
Luminance
0.3688
Every format
| HEX | #9eac21 |
| RGB | rgb(158, 172, 33) |
| HSL | hsl(66, 68%, 40%) |
| CMYK | cmyk(8%, 0%, 81%, 33%) |
| LAB | lab(67.2 -21.5 63.2) |
| LCH | lch(67.2 66.8 108.8) |
| OKLCH | oklch(0.710 0.152 115.6) |
Copy-ready code
/* CSS */
color: #9eac21;
background-color: #9eac21;
/* Tailwind (arbitrary) */
class="text-[#9eac21] bg-[#9eac21]"
/* SCSS */
$brand: #9eac21;
/* SwiftUI */
Color(red: 0.620, green: 0.675, blue: 0.129)
/* Android */
Color.parseColor("#9eac21")Accessibility — WCAG contrast
Aa
#9eac21 on white: 2.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#9eac21 on black: 8.38:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.0%
Green67.5%
Blue12.9%
CMYK percentages
Cyan8.1%
Magenta0.0%
Yellow80.8%
Key (black)32.5%
Color previews
#9eac21 text on a black background
contrast 8.38:1
Card sample
#9eac21 text on a white background
contrast 2.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9eac21;
Background color
Panel with #9eac21 background
background-color: #9eac21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9eac21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(158, 172, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(158, 172, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9eac21; background: linear-gradient(135deg, #9eac21, #41AC21);