#8c9821
a dark, vivid yellow · cool · closest name: olive
RGB
140, 152, 33
HSL
66°, 64%, 36%
CMYK
8, 0, 78, 40
Luminance
0.2814
Every format
| HEX | #8c9821 |
| RGB | rgb(140, 152, 33) |
| HSL | hsl(66, 64%, 36%) |
| CMYK | cmyk(8%, 0%, 78%, 40%) |
| LAB | lab(60.0 -19.2 56.3) |
| LCH | lch(60.0 59.5 108.8) |
| OKLCH | oklch(0.649 0.137 115.5) |
Copy-ready code
/* CSS */
color: #8c9821;
background-color: #8c9821;
/* Tailwind (arbitrary) */
class="text-[#8c9821] bg-[#8c9821]"
/* SCSS */
$brand: #8c9821;
/* SwiftUI */
Color(red: 0.549, green: 0.596, blue: 0.129)
/* Android */
Color.parseColor("#8c9821")Accessibility — WCAG contrast
Aa
#8c9821 on white: 3.17:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8c9821 on black: 6.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.9%
Green59.6%
Blue12.9%
CMYK percentages
Cyan7.9%
Magenta0.0%
Yellow78.3%
Key (black)40.4%
Color previews
#8c9821 text on a black background
contrast 6.63:1
Card sample
#8c9821 text on a white background
contrast 3.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8c9821;
Background color
Panel with #8c9821 background
background-color: #8c9821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8c9821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(140, 152, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 152, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8c9821; background: linear-gradient(135deg, #8c9821, #3D9821);