#8a7021
a dark, vivid yellow · cool · closest name: olive
RGB
138, 112, 33
HSL
45°, 61%, 34%
CMYK
0, 19, 76, 46
Luminance
0.1710
Every format
| HEX | #8a7021 |
| RGB | rgb(138, 112, 33) |
| HSL | hsl(45, 61%, 34%) |
| CMYK | cmyk(0%, 19%, 76%, 46%) |
| LAB | lab(48.4 1.7 45.3) |
| LCH | lch(48.4 45.3 87.9) |
| OKLCH | oklch(0.556 0.100 89.9) |
Copy-ready code
/* CSS */
color: #8a7021;
background-color: #8a7021;
/* Tailwind (arbitrary) */
class="text-[#8a7021] bg-[#8a7021]"
/* SCSS */
$brand: #8a7021;
/* SwiftUI */
Color(red: 0.541, green: 0.439, blue: 0.129)
/* Android */
Color.parseColor("#8a7021")Accessibility — WCAG contrast
Aa
#8a7021 on white: 4.75:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#8a7021 on black: 4.42:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.1%
Green43.9%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta18.8%
Yellow76.1%
Key (black)45.9%
Color previews
#8a7021 text on a black background
contrast 4.42:1
Card sample
#8a7021 text on a white background
contrast 4.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8a7021;
Background color
Panel with #8a7021 background
background-color: #8a7021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8a7021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(138, 112, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 112, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8a7021; background: linear-gradient(135deg, #8a7021, #5E8A21);