#336821
a dark, vivid green · cool · closest name: seagreen
RGB
51, 104, 33
HSL
105°, 52%, 27%
CMYK
51, 0, 68, 59
Luminance
0.1071
Every format
| HEX | #336821 |
| RGB | rgb(51, 104, 33) |
| HSL | hsl(105, 52%, 27%) |
| CMYK | cmyk(51%, 0%, 68%, 59%) |
| LAB | lab(39.1 -32.1 33.5) |
| LCH | lch(39.1 46.4 133.7) |
| OKLCH | oklch(0.464 0.117 138.7) |
Copy-ready code
/* CSS */
color: #336821;
background-color: #336821;
/* Tailwind (arbitrary) */
class="text-[#336821] bg-[#336821]"
/* SCSS */
$brand: #336821;
/* SwiftUI */
Color(red: 0.200, green: 0.408, blue: 0.129)
/* Android */
Color.parseColor("#336821")Accessibility — WCAG contrast
Aa
#336821 on white: 6.68:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#336821 on black: 3.14:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green40.8%
Blue12.9%
CMYK percentages
Cyan51.0%
Magenta0.0%
Yellow68.3%
Key (black)59.2%
Color previews
#336821 text on a black background
contrast 3.14:1
Card sample
#336821 text on a white background
contrast 6.68:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #336821;
Background color
Panel with #336821 background
background-color: #336821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #336821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 104, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 104, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #336821; background: linear-gradient(135deg, #336821, #21683E);