#808c21
a dark, vivid yellow · cool · closest name: olive
RGB
128, 140, 33
HSL
67°, 62%, 34%
CMYK
9, 0, 76, 45
Luminance
0.2346
Every format
| HEX | #808c21 |
| RGB | rgb(128, 140, 33) |
| HSL | hsl(67, 62%, 34%) |
| CMYK | cmyk(9%, 0%, 76%, 45%) |
| LAB | lab(55.5 -18.3 51.8) |
| LCH | lch(55.5 54.9 109.5) |
| OKLCH | oklch(0.610 0.127 115.9) |
Copy-ready code
/* CSS */
color: #808c21;
background-color: #808c21;
/* Tailwind (arbitrary) */
class="text-[#808c21] bg-[#808c21]"
/* SCSS */
$brand: #808c21;
/* SwiftUI */
Color(red: 0.502, green: 0.549, blue: 0.129)
/* Android */
Color.parseColor("#808c21")Accessibility — WCAG contrast
Aa
#808c21 on white: 3.69:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#808c21 on black: 5.69:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green54.9%
Blue12.9%
CMYK percentages
Cyan8.6%
Magenta0.0%
Yellow76.4%
Key (black)45.1%
Color previews
#808c21 text on a black background
contrast 5.69:1
Card sample
#808c21 text on a white background
contrast 3.69:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #808c21;
Background color
Panel with #808c21 background
background-color: #808c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #808c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 140, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 140, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #808c21; background: linear-gradient(135deg, #808c21, #398C21);