#284721
a deep, soft green · cool · closest name: darkslategray
RGB
40, 71, 33
HSL
109°, 37%, 20%
CMYK
44, 0, 54, 72
Luminance
0.0507
Every format
| HEX | #284721 |
| RGB | rgb(40, 71, 33) |
| HSL | hsl(109, 37%, 20%) |
| CMYK | cmyk(44%, 0%, 54%, 72%) |
| LAB | lab(26.9 -20.2 19.2) |
| LCH | lch(26.9 27.9 136.5) |
| OKLCH | oklch(0.363 0.072 139.9) |
Copy-ready code
/* CSS */
color: #284721;
background-color: #284721;
/* Tailwind (arbitrary) */
class="text-[#284721] bg-[#284721]"
/* SCSS */
$brand: #284721;
/* SwiftUI */
Color(red: 0.157, green: 0.278, blue: 0.129)
/* Android */
Color.parseColor("#284721")Accessibility — WCAG contrast
Aa
#284721 on white: 10.43:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#284721 on black: 2.01:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green27.8%
Blue12.9%
CMYK percentages
Cyan43.7%
Magenta0.0%
Yellow53.5%
Key (black)72.2%
Color previews
#284721 text on a black background
contrast 2.01:1
Card sample
#284721 text on a white background
contrast 10.43:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #284721;
Background color
Panel with #284721 background
background-color: #284721;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #284721;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 71, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 71, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #284721; background: linear-gradient(135deg, #284721, #214733);