#516521
a dark, vivid green · cool · closest name: olivedrab
RGB
81, 101, 33
HSL
78°, 51%, 26%
CMYK
20, 0, 67, 60
Luminance
0.1117
Every format
| HEX | #516521 |
| RGB | rgb(81, 101, 33) |
| HSL | hsl(78, 51%, 26%) |
| CMYK | cmyk(20%, 0%, 67%, 60%) |
| LAB | lab(39.9 -18.8 34.9) |
| LCH | lch(39.9 39.6 118.3) |
| OKLCH | oklch(0.475 0.096 124.0) |
Copy-ready code
/* CSS */
color: #516521;
background-color: #516521;
/* Tailwind (arbitrary) */
class="text-[#516521] bg-[#516521]"
/* SCSS */
$brand: #516521;
/* SwiftUI */
Color(red: 0.318, green: 0.396, blue: 0.129)
/* Android */
Color.parseColor("#516521")Accessibility — WCAG contrast
Aa
#516521 on white: 6.49:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#516521 on black: 3.23:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green39.6%
Blue12.9%
CMYK percentages
Cyan19.8%
Magenta0.0%
Yellow67.3%
Key (black)60.4%
Color previews
#516521 text on a black background
contrast 3.23:1
Card sample
#516521 text on a white background
contrast 6.49:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #516521;
Background color
Panel with #516521 background
background-color: #516521;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #516521;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 101, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 101, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #516521; background: linear-gradient(135deg, #516521, #246521);