#417021
a dark, vivid green · cool · closest name: olivedrab
RGB
65, 112, 33
HSL
96°, 55%, 28%
CMYK
42, 0, 71, 56
Luminance
0.1282
Every format
| HEX | #417021 |
| RGB | rgb(65, 112, 33) |
| HSL | hsl(96, 55%, 28%) |
| CMYK | cmyk(42%, 0%, 71%, 56%) |
| LAB | lab(42.5 -30.8 37.4) |
| LCH | lch(42.5 48.4 129.4) |
| OKLCH | oklch(0.494 0.121 135.1) |
Copy-ready code
/* CSS */
color: #417021;
background-color: #417021;
/* Tailwind (arbitrary) */
class="text-[#417021] bg-[#417021]"
/* SCSS */
$brand: #417021;
/* SwiftUI */
Color(red: 0.255, green: 0.439, blue: 0.129)
/* Android */
Color.parseColor("#417021")Accessibility — WCAG contrast
Aa
#417021 on white: 5.89:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#417021 on black: 3.56:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.5%
Green43.9%
Blue12.9%
CMYK percentages
Cyan42.0%
Magenta0.0%
Yellow70.5%
Key (black)56.1%
Color previews
#417021 text on a black background
contrast 3.56:1
Card sample
#417021 text on a white background
contrast 5.89:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #417021;
Background color
Panel with #417021 background
background-color: #417021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #417021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(65, 112, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(65, 112, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #417021; background: linear-gradient(135deg, #417021, #217036);