#9f8021
a dark, vivid yellow · cool · closest name: olive
RGB
159, 128, 33
HSL
45°, 66%, 38%
CMYK
0, 20, 79, 38
Luminance
0.2292
Every format
| HEX | #9f8021 |
| RGB | rgb(159, 128, 33) |
| HSL | hsl(45, 66%, 38%) |
| CMYK | cmyk(0%, 20%, 79%, 38%) |
| LAB | lab(55.0 2.4 52.3) |
| LCH | lch(55.0 52.4 87.4) |
| OKLCH | oklch(0.613 0.114 89.6) |
Copy-ready code
/* CSS */
color: #9f8021;
background-color: #9f8021;
/* Tailwind (arbitrary) */
class="text-[#9f8021] bg-[#9f8021]"
/* SCSS */
$brand: #9f8021;
/* SwiftUI */
Color(red: 0.624, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#9f8021")Accessibility — WCAG contrast
Aa
#9f8021 on white: 3.76:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#9f8021 on black: 5.58:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red62.4%
Green50.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta19.5%
Yellow79.2%
Key (black)37.6%
Color previews
#9f8021 text on a black background
contrast 5.58:1
Card sample
#9f8021 text on a white background
contrast 3.76:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #9f8021;
Background color
Panel with #9f8021 background
background-color: #9f8021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #9f8021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(159, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f8021; background: linear-gradient(135deg, #9f8021, #6A9F21);