#516421
a dark, vivid green · cool · closest name: olivedrab
RGB
81, 100, 33
HSL
77°, 50%, 26%
CMYK
19, 0, 67, 61
Luminance
0.1097
Every format
| HEX | #516421 |
| RGB | rgb(81, 100, 33) |
| HSL | hsl(77, 50%, 26%) |
| CMYK | cmyk(19%, 0%, 67%, 61%) |
| LAB | lab(39.5 -18.2 34.5) |
| LCH | lch(39.5 39.0 117.8) |
| OKLCH | oklch(0.472 0.095 123.5) |
Copy-ready code
/* CSS */
color: #516421;
background-color: #516421;
/* Tailwind (arbitrary) */
class="text-[#516421] bg-[#516421]"
/* SCSS */
$brand: #516421;
/* SwiftUI */
Color(red: 0.318, green: 0.392, blue: 0.129)
/* Android */
Color.parseColor("#516421")Accessibility — WCAG contrast
Aa
#516421 on white: 6.57:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#516421 on black: 3.19:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green39.2%
Blue12.9%
CMYK percentages
Cyan19.0%
Magenta0.0%
Yellow67.0%
Key (black)60.8%
Color previews
#516421 text on a black background
contrast 3.19:1
Card sample
#516421 text on a white background
contrast 6.57:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #516421;
Background color
Panel with #516421 background
background-color: #516421;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #516421;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 100, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 100, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #516421; background: linear-gradient(135deg, #516421, #246421);