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