#8b8317
a dark, vivid yellow · cool · closest name: olive
RGB
139, 131, 23
HSL
56°, 72%, 32%
CMYK
0, 6, 84, 46
Luminance
0.2178
Every format
| HEX | #8b8317 |
| RGB | rgb(139, 131, 23) |
| HSL | hsl(56, 72%, 32%) |
| CMYK | cmyk(0%, 6%, 84%, 46%) |
| LAB | lab(53.8 -8.9 53.8) |
| LCH | lch(53.8 54.5 99.4) |
| OKLCH | oklch(0.599 0.120 104.9) |
Copy-ready code
/* CSS */
color: #8b8317;
background-color: #8b8317;
/* Tailwind (arbitrary) */
class="text-[#8b8317] bg-[#8b8317]"
/* SCSS */
$brand: #8b8317;
/* SwiftUI */
Color(red: 0.545, green: 0.514, blue: 0.090)
/* Android */
Color.parseColor("#8b8317")Accessibility — WCAG contrast
Aa
#8b8317 on white: 3.92:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#8b8317 on black: 5.36:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red54.5%
Green51.4%
Blue9.0%
CMYK percentages
Cyan0.0%
Magenta5.8%
Yellow83.5%
Key (black)45.5%
Color previews
#8b8317 text on a black background
contrast 5.36:1
Card sample
#8b8317 text on a white background
contrast 3.92:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #8b8317;
Background color
Panel with #8b8317 background
background-color: #8b8317;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #8b8317;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(139, 131, 23, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 131, 23, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8b8317; background: linear-gradient(135deg, #8b8317, #468B17);