#488021
a dark, vivid green · cool · closest name: olivedrab
RGB
72, 128, 33
HSL
95°, 59%, 32%
CMYK
44, 0, 74, 50
Luminance
0.1693
Every format
| HEX | #488021 |
| RGB | rgb(72, 128, 33) |
| HSL | hsl(95, 59%, 32%) |
| CMYK | cmyk(44%, 0%, 74%, 50%) |
| LAB | lab(48.2 -35.4 43.4) |
| LCH | lch(48.2 56.0 129.2) |
| OKLCH | oklch(0.541 0.139 135.3) |
Copy-ready code
/* CSS */
color: #488021;
background-color: #488021;
/* Tailwind (arbitrary) */
class="text-[#488021] bg-[#488021]"
/* SCSS */
$brand: #488021;
/* SwiftUI */
Color(red: 0.282, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#488021")Accessibility — WCAG contrast
Aa
#488021 on white: 4.79:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#488021 on black: 4.39:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red28.2%
Green50.2%
Blue12.9%
CMYK percentages
Cyan43.8%
Magenta0.0%
Yellow74.2%
Key (black)49.8%
Color previews
#488021 text on a black background
contrast 4.39:1
Card sample
#488021 text on a white background
contrast 4.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #488021;
Background color
Panel with #488021 background
background-color: #488021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #488021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(72, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(72, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #488021; background: linear-gradient(135deg, #488021, #218039);