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