#334608
a deep, electric green · cool · closest name: olivedrab
RGB
51, 70, 8
HSL
78°, 80%, 15%
CMYK
27, 0, 89, 73
Luminance
0.0510
Every format
| HEX | #334608 |
| RGB | rgb(51, 70, 8) |
| HSL | hsl(78, 80%, 15%) |
| CMYK | cmyk(27%, 0%, 89%, 73%) |
| LAB | lab(27.0 -17.5 31.9) |
| LCH | lch(27.0 36.5 118.8) |
| OKLCH | oklch(0.365 0.087 126.0) |
Copy-ready code
/* CSS */
color: #334608;
background-color: #334608;
/* Tailwind (arbitrary) */
class="text-[#334608] bg-[#334608]"
/* SCSS */
$brand: #334608;
/* SwiftUI */
Color(red: 0.200, green: 0.275, blue: 0.031)
/* Android */
Color.parseColor("#334608")Accessibility — WCAG contrast
Aa
#334608 on white: 10.39:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#334608 on black: 2.02:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green27.5%
Blue3.1%
CMYK percentages
Cyan27.1%
Magenta0.0%
Yellow88.6%
Key (black)72.5%
Color previews
#334608 text on a black background
contrast 2.02:1
Card sample
#334608 text on a white background
contrast 10.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #334608;
Background color
Panel with #334608 background
background-color: #334608;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #334608;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 70, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 70, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #334608; background: linear-gradient(135deg, #334608, #0A4608);