#8f9e21
a dark, vivid yellow · cool · closest name: olive
RGB
143, 158, 33
HSL
67°, 65%, 38%
CMYK
10, 0, 79, 38
Luminance
0.3040
Every format
| HEX | #8f9e21 |
| RGB | rgb(143, 158, 33) |
| HSL | hsl(67, 65%, 38%) |
| CMYK | cmyk(10%, 0%, 79%, 38%) |
| LAB | lab(62.0 -20.9 58.2) |
| LCH | lch(62.0 61.8 109.8) |
| OKLCH | oklch(0.665 0.142 116.6) |
Copy-ready code
/* CSS */
color: #8f9e21;
background-color: #8f9e21;
/* Tailwind (arbitrary) */
class="text-[#8f9e21] bg-[#8f9e21]"
/* SCSS */
$brand: #8f9e21;
/* SwiftUI */
Color(red: 0.561, green: 0.620, blue: 0.129)
/* Android */
Color.parseColor("#8f9e21")Accessibility — WCAG contrast
Aa
#8f9e21 on white: 2.97:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#8f9e21 on black: 7.08:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red56.1%
Green62.0%
Blue12.9%
CMYK percentages
Cyan9.5%
Magenta0.0%
Yellow79.1%
Key (black)38.0%
Color previews
#8f9e21 text on a black background
contrast 7.08:1
Card sample
#8f9e21 text on a white background
contrast 2.97:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8f9e21;
Background color
Panel with #8f9e21 background
background-color: #8f9e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8f9e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(143, 158, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 158, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f9e21; background: linear-gradient(135deg, #8f9e21, #3C9E21);