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