#8f8021
a dark, vivid yellow · cool · closest name: olive
RGB
143, 128, 33
HSL
52°, 63%, 35%
CMYK
0, 11, 77, 44
Luminance
0.2139
Every format
| HEX | #8f8021 |
| RGB | rgb(143, 128, 33) |
| HSL | hsl(52, 63%, 35%) |
| CMYK | cmyk(0%, 11%, 77%, 44%) |
| LAB | lab(53.4 -5.0 50.2) |
| LCH | lch(53.4 50.5 95.7) |
| OKLCH | oklch(0.596 0.112 99.9) |
Copy-ready code
/* CSS */
color: #8f8021;
background-color: #8f8021;
/* Tailwind (arbitrary) */
class="text-[#8f8021] bg-[#8f8021]"
/* SCSS */
$brand: #8f8021;
/* SwiftUI */
Color(red: 0.561, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#8f8021")Accessibility — WCAG contrast
Aa
#8f8021 on white: 3.98:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8f8021 on black: 5.28:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red56.1%
Green50.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta10.5%
Yellow76.9%
Key (black)43.9%
Color previews
#8f8021 text on a black background
contrast 5.28:1
Card sample
#8f8021 text on a white background
contrast 3.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8f8021;
Background color
Panel with #8f8021 background
background-color: #8f8021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8f8021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(143, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f8021; background: linear-gradient(135deg, #8f8021, #558F21);