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