#54840c
a dark, electric green · cool · closest name: olivedrab
RGB
84, 132, 12
HSL
84°, 83%, 28%
CMYK
36, 0, 91, 48
Luminance
0.1841
Every format
| HEX | #54840c |
| RGB | rgb(84, 132, 12) |
| HSL | hsl(84, 83%, 28%) |
| CMYK | cmyk(36%, 0%, 91%, 48%) |
| LAB | lab(50.0 -33.8 51.6) |
| LCH | lch(50.0 61.7 123.2) |
| OKLCH | oklch(0.558 0.148 130.8) |
Copy-ready code
/* CSS */
color: #54840c;
background-color: #54840c;
/* Tailwind (arbitrary) */
class="text-[#54840c] bg-[#54840c]"
/* SCSS */
$brand: #54840c;
/* SwiftUI */
Color(red: 0.329, green: 0.518, blue: 0.047)
/* Android */
Color.parseColor("#54840c")Accessibility — WCAG contrast
Aa
#54840c on white: 4.48:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#54840c on black: 4.68:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red32.9%
Green51.8%
Blue4.7%
CMYK percentages
Cyan36.4%
Magenta0.0%
Yellow90.9%
Key (black)48.2%
Color previews
#54840c text on a black background
contrast 4.68:1
Card sample
#54840c text on a white background
contrast 4.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #54840c;
Background color
Panel with #54840c background
background-color: #54840c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #54840c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(84, 132, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(84, 132, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #54840c; background: linear-gradient(135deg, #54840c, #0C8414);