#8f7021
a dark, vivid yellow · warm · closest name: olive
RGB
143, 112, 33
HSL
43°, 63%, 35%
CMYK
0, 22, 77, 44
Luminance
0.1754
Every format
| HEX | #8f7021 |
| RGB | rgb(143, 112, 33) |
| HSL | hsl(43, 63%, 35%) |
| CMYK | cmyk(0%, 22%, 77%, 44%) |
| LAB | lab(48.9 4.0 46.0) |
| LCH | lch(48.9 46.1 85.0) |
| OKLCH | oklch(0.561 0.101 86.3) |
Copy-ready code
/* CSS */
color: #8f7021;
background-color: #8f7021;
/* Tailwind (arbitrary) */
class="text-[#8f7021] bg-[#8f7021]"
/* SCSS */
$brand: #8f7021;
/* SwiftUI */
Color(red: 0.561, green: 0.439, blue: 0.129)
/* Android */
Color.parseColor("#8f7021")Accessibility — WCAG contrast
Aa
#8f7021 on white: 4.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8f7021 on black: 4.51:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red56.1%
Green43.9%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta21.7%
Yellow76.9%
Key (black)43.9%
Color previews
#8f7021 text on a black background
contrast 4.51:1
Card sample
#8f7021 text on a white background
contrast 4.66:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8f7021;
Background color
Panel with #8f7021 background
background-color: #8f7021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8f7021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(143, 112, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 112, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f7021; background: linear-gradient(135deg, #8f7021, #658F21);