#877f21
a dark, vivid yellow · cool · closest name: olive
RGB
135, 127, 33
HSL
55°, 61%, 33%
CMYK
0, 6, 76, 47
Luminance
0.2044
Every format
| HEX | #877f21 |
| RGB | rgb(135, 127, 33) |
| HSL | hsl(55, 61%, 33%) |
| CMYK | cmyk(0%, 6%, 76%, 47%) |
| LAB | lab(52.3 -8.2 49.0) |
| LCH | lch(52.3 49.6 99.5) |
| OKLCH | oklch(0.586 0.111 104.4) |
Copy-ready code
/* CSS */
color: #877f21;
background-color: #877f21;
/* Tailwind (arbitrary) */
class="text-[#877f21] bg-[#877f21]"
/* SCSS */
$brand: #877f21;
/* SwiftUI */
Color(red: 0.529, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#877f21")Accessibility — WCAG contrast
Aa
#877f21 on white: 4.13:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#877f21 on black: 5.09:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red52.9%
Green49.8%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta5.9%
Yellow75.6%
Key (black)47.1%
Color previews
#877f21 text on a black background
contrast 5.09:1
Card sample
#877f21 text on a white background
contrast 4.13:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #877f21;
Background color
Panel with #877f21 background
background-color: #877f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #877f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(135, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(135, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #877f21; background: linear-gradient(135deg, #877f21, #4B8721);