#54ac21
a dark, vivid green · cool · closest name: forestgreen
RGB
84, 172, 33
HSL
98°, 68%, 40%
CMYK
51, 0, 81, 33
Luminance
0.3150
Every format
| HEX | #54ac21 |
| RGB | rgb(84, 172, 33) |
| HSL | hsl(98, 68%, 40%) |
| CMYK | cmyk(51%, 0%, 81%, 33%) |
| LAB | lab(62.9 -49.5 57.8) |
| LCH | lch(62.9 76.1 130.6) |
| OKLCH | oklch(0.664 0.188 137.1) |
Copy-ready code
/* CSS */
color: #54ac21;
background-color: #54ac21;
/* Tailwind (arbitrary) */
class="text-[#54ac21] bg-[#54ac21]"
/* SCSS */
$brand: #54ac21;
/* SwiftUI */
Color(red: 0.329, green: 0.675, blue: 0.129)
/* Android */
Color.parseColor("#54ac21")Accessibility — WCAG contrast
Aa
#54ac21 on white: 2.88:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#54ac21 on black: 7.30:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red32.9%
Green67.5%
Blue12.9%
CMYK percentages
Cyan51.2%
Magenta0.0%
Yellow80.8%
Key (black)32.5%
Color previews
#54ac21 text on a black background
contrast 7.30:1
Card sample
#54ac21 text on a white background
contrast 2.88:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #54ac21;
Background color
Panel with #54ac21 background
background-color: #54ac21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #54ac21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(84, 172, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(84, 172, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #54ac21; background: linear-gradient(135deg, #54ac21, #21AC4B);