#8a8621
a dark, vivid yellow · cool · closest name: olive
RGB
138, 134, 33
HSL
58°, 61%, 34%
CMYK
0, 3, 76, 46
Luminance
0.2256
Every format
| HEX | #8a8621 |
| RGB | rgb(138, 134, 33) |
| HSL | hsl(58, 61%, 34%) |
| CMYK | cmyk(0%, 3%, 76%, 46%) |
| LAB | lab(54.6 -10.6 51.2) |
| LCH | lch(54.6 52.3 101.7) |
| OKLCH | oklch(0.605 0.118 107.1) |
Copy-ready code
/* CSS */
color: #8a8621;
background-color: #8a8621;
/* Tailwind (arbitrary) */
class="text-[#8a8621] bg-[#8a8621]"
/* SCSS */
$brand: #8a8621;
/* SwiftUI */
Color(red: 0.541, green: 0.525, blue: 0.129)
/* Android */
Color.parseColor("#8a8621")Accessibility — WCAG contrast
Aa
#8a8621 on white: 3.81:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8a8621 on black: 5.51:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.1%
Green52.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta2.9%
Yellow76.1%
Key (black)45.9%
Color previews
#8a8621 text on a black background
contrast 5.51:1
Card sample
#8a8621 text on a white background
contrast 3.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8a8621;
Background color
Panel with #8a8621 background
background-color: #8a8621;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8a8621;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(138, 134, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(138, 134, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8a8621; background: linear-gradient(135deg, #8a8621, #488A21);