#515821
a deep, vivid yellow · cool · closest name: olive
RGB
81, 88, 33
HSL
68°, 46%, 24%
CMYK
8, 0, 63, 66
Luminance
0.0884
Every format
| HEX | #515821 |
| RGB | rgb(81, 88, 33) |
| HSL | hsl(68, 46%, 24%) |
| CMYK | cmyk(8%, 0%, 63%, 66%) |
| LAB | lab(35.7 -11.6 30.3) |
| LCH | lch(35.7 32.4 110.9) |
| OKLCH | oklch(0.441 0.078 115.7) |
Copy-ready code
/* CSS */
color: #515821;
background-color: #515821;
/* Tailwind (arbitrary) */
class="text-[#515821] bg-[#515821]"
/* SCSS */
$brand: #515821;
/* SwiftUI */
Color(red: 0.318, green: 0.345, blue: 0.129)
/* Android */
Color.parseColor("#515821")Accessibility — WCAG contrast
Aa
#515821 on white: 7.59:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#515821 on black: 2.77:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green34.5%
Blue12.9%
CMYK percentages
Cyan8.0%
Magenta0.0%
Yellow62.5%
Key (black)65.5%
Color previews
#515821 text on a black background
contrast 2.77:1
Card sample
#515821 text on a white background
contrast 7.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #515821;
Background color
Panel with #515821 background
background-color: #515821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #515821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 88, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 88, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #515821; background: linear-gradient(135deg, #515821, #2C5821);