#838021
a dark, vivid yellow · cool · closest name: olive
RGB
131, 128, 33
HSL
58°, 60%, 32%
CMYK
0, 2, 75, 49
Luminance
0.2037
Every format
| HEX | #838021 |
| RGB | rgb(131, 128, 33) |
| HSL | hsl(58, 60%, 32%) |
| CMYK | cmyk(0%, 2%, 75%, 49%) |
| LAB | lab(52.3 -10.6 48.8) |
| LCH | lch(52.3 49.9 102.2) |
| OKLCH | oklch(0.585 0.113 107.6) |
Copy-ready code
/* CSS */
color: #838021;
background-color: #838021;
/* Tailwind (arbitrary) */
class="text-[#838021] bg-[#838021]"
/* SCSS */
$brand: #838021;
/* SwiftUI */
Color(red: 0.514, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#838021")Accessibility — WCAG contrast
Aa
#838021 on white: 4.14:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#838021 on black: 5.07:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red51.4%
Green50.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta2.3%
Yellow74.8%
Key (black)48.6%
Color previews
#838021 text on a black background
contrast 5.07:1
Card sample
#838021 text on a white background
contrast 4.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #838021;
Background color
Panel with #838021 background
background-color: #838021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #838021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(131, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(131, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #838021; background: linear-gradient(135deg, #838021, #458321);