#9f8939
a dark, vivid yellow · cool · closest name: olive
RGB
159, 137, 57
HSL
47°, 47%, 42%
CMYK
0, 14, 64, 38
Luminance
0.2556
Every format
| HEX | #9f8939 |
| RGB | rgb(159, 137, 57) |
| HSL | hsl(47, 47%, 42%) |
| CMYK | cmyk(0%, 14%, 64%, 38%) |
| LAB | lab(57.6 -1.4 44.8) |
| LCH | lch(57.6 44.8 91.7) |
| OKLCH | oklch(0.634 0.103 93.9) |
Copy-ready code
/* CSS */
color: #9f8939;
background-color: #9f8939;
/* Tailwind (arbitrary) */
class="text-[#9f8939] bg-[#9f8939]"
/* SCSS */
$brand: #9f8939;
/* SwiftUI */
Color(red: 0.624, green: 0.537, blue: 0.224)
/* Android */
Color.parseColor("#9f8939")Accessibility — WCAG contrast
Aa
#9f8939 on white: 3.44:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#9f8939 on black: 6.11:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green53.7%
Blue22.4%
CMYK percentages
Cyan0.0%
Magenta13.8%
Yellow64.2%
Key (black)37.6%
Color previews
#9f8939 text on a black background
contrast 6.11:1
Card sample
#9f8939 text on a white background
contrast 3.44:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9f8939;
Background color
Panel with #9f8939 background
background-color: #9f8939;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9f8939;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 137, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 137, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f8939; background: linear-gradient(135deg, #9f8939, #719F39);