#336f21
a dark, vivid green · cool · closest name: forestgreen
RGB
51, 111, 33
HSL
106°, 54%, 28%
CMYK
54, 0, 70, 57
Luminance
0.1218
Every format
| HEX | #336f21 |
| RGB | rgb(51, 111, 33) |
| HSL | hsl(106, 54%, 28%) |
| CMYK | cmyk(54%, 0%, 70%, 57%) |
| LAB | lab(41.5 -35.1 36.1) |
| LCH | lch(41.5 50.4 134.2) |
| OKLCH | oklch(0.484 0.127 139.3) |
Copy-ready code
/* CSS */
color: #336f21;
background-color: #336f21;
/* Tailwind (arbitrary) */
class="text-[#336f21] bg-[#336f21]"
/* SCSS */
$brand: #336f21;
/* SwiftUI */
Color(red: 0.200, green: 0.435, blue: 0.129)
/* Android */
Color.parseColor("#336f21")Accessibility — WCAG contrast
Aa
#336f21 on white: 6.11:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#336f21 on black: 3.44:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green43.5%
Blue12.9%
CMYK percentages
Cyan54.1%
Magenta0.0%
Yellow70.3%
Key (black)56.5%
Color previews
#336f21 text on a black background
contrast 3.44:1
Card sample
#336f21 text on a white background
contrast 6.11:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #336f21;
Background color
Panel with #336f21 background
background-color: #336f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #336f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 111, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 111, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #336f21; background: linear-gradient(135deg, #336f21, #216F43);