#868021
a dark, vivid yellow · cool · closest name: olive
RGB
134, 128, 33
HSL
56°, 61%, 33%
CMYK
0, 5, 75, 48
Luminance
0.2062
Every format
| HEX | #868021 |
| RGB | rgb(134, 128, 33) |
| HSL | hsl(56, 61%, 33%) |
| CMYK | cmyk(0%, 5%, 75%, 48%) |
| LAB | lab(52.5 -9.2 49.1) |
| LCH | lch(52.5 50.0 100.6) |
| OKLCH | oklch(0.588 0.113 105.7) |
Copy-ready code
/* CSS */
color: #868021;
background-color: #868021;
/* Tailwind (arbitrary) */
class="text-[#868021] bg-[#868021]"
/* SCSS */
$brand: #868021;
/* SwiftUI */
Color(red: 0.525, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#868021")Accessibility — WCAG contrast
Aa
#868021 on white: 4.10:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#868021 on black: 5.12:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red52.5%
Green50.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta4.5%
Yellow75.4%
Key (black)47.5%
Color previews
#868021 text on a black background
contrast 5.12:1
Card sample
#868021 text on a white background
contrast 4.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #868021;
Background color
Panel with #868021 background
background-color: #868021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #868021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(134, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(134, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #868021; background: linear-gradient(135deg, #868021, #498621);