#807e21
a dark, vivid yellow · cool · closest name: olive
RGB
128, 126, 33
HSL
59°, 59%, 32%
CMYK
0, 2, 74, 50
Luminance
0.1962
Every format
| HEX | #807e21 |
| RGB | rgb(128, 126, 33) |
| HSL | hsl(59, 59%, 32%) |
| CMYK | cmyk(0%, 2%, 74%, 50%) |
| LAB | lab(51.4 -10.8 47.9) |
| LCH | lch(51.4 49.1 102.8) |
| OKLCH | oklch(0.577 0.111 108.2) |
Copy-ready code
/* CSS */
color: #807e21;
background-color: #807e21;
/* Tailwind (arbitrary) */
class="text-[#807e21] bg-[#807e21]"
/* SCSS */
$brand: #807e21;
/* SwiftUI */
Color(red: 0.502, green: 0.494, blue: 0.129)
/* Android */
Color.parseColor("#807e21")Accessibility — WCAG contrast
Aa
#807e21 on white: 4.26:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#807e21 on black: 4.92:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red50.2%
Green49.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta1.6%
Yellow74.2%
Key (black)49.8%
Color previews
#807e21 text on a black background
contrast 4.92:1
Card sample
#807e21 text on a white background
contrast 4.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #807e21;
Background color
Panel with #807e21 background
background-color: #807e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #807e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(128, 126, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(128, 126, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #807e21; background: linear-gradient(135deg, #807e21, #438021);