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