#1fa221
a dark, vivid green · cool · closest name: forestgreen
RGB
31, 162, 33
HSL
121°, 68%, 38%
CMYK
81, 0, 80, 37
Luminance
0.2624
Every format
| HEX | #1fa221 |
| RGB | rgb(31, 162, 33) |
| HSL | hsl(121, 68%, 38%) |
| CMYK | cmyk(81%, 0%, 80%, 37%) |
| LAB | lab(58.3 -57.6 52.9) |
| LCH | lch(58.3 78.2 137.4) |
| OKLCH | oklch(0.621 0.196 142.9) |
Copy-ready code
/* CSS */
color: #1fa221;
background-color: #1fa221;
/* Tailwind (arbitrary) */
class="text-[#1fa221] bg-[#1fa221]"
/* SCSS */
$brand: #1fa221;
/* SwiftUI */
Color(red: 0.122, green: 0.635, blue: 0.129)
/* Android */
Color.parseColor("#1fa221")Accessibility — WCAG contrast
Aa
#1fa221 on white: 3.36:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#1fa221 on black: 6.25:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red12.2%
Green63.5%
Blue12.9%
CMYK percentages
Cyan80.9%
Magenta0.0%
Yellow79.6%
Key (black)36.5%
Color previews
#1fa221 text on a black background
contrast 6.25:1
Card sample
#1fa221 text on a white background
contrast 3.36:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #1fa221;
Background color
Panel with #1fa221 background
background-color: #1fa221;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #1fa221;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(31, 162, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 162, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1fa221; background: linear-gradient(135deg, #1fa221, #1FA278);