#2A971F#2A971F
#2A971F is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.3% C 0.182 H 141.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2A971F |
|---|---|
| RGB | rgb(42, 151, 31) |
| HSL | hsl(115, 66%, 36%) |
| HSV | hsv(115, 79%, 59%) |
| CMYK | cmyk(72.2%, 0%, 79.5%, 40.8%) |
| CIE-LAB | lab(54.79, -52.42, 50.26) |
| CIE-LCH | lch(54.79, 72.62, 136.21°) |
| OKLab | oklab(59.3% -0.1429 0.1123) |
| OKLCH | oklch(59.3% 0.182 141.8) |
| XYZ | xyz(12.2681, 22.7230, 5.0355) |
| Luminance | 0.2272 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
True Green
#089404
ΔE00 2.09
Irish Green
#019529
ΔE00 2.54
Grass Green
#3F9B0B
ΔE00 3.19
Emerald Green
#028F1E
ΔE00 3.47
Grassy Green
#419C03
ΔE00 3.77
Forestgreen (CSS)
#228B22
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A971F #8C1F97
analogous
#66971F #2A971F #1F9750
triadic
#2A971F #1F2A97 #971F2A
tetradic
#2A971F #1F6697 #8C1F97 #97501F
square
#2A971F #1F6697 #8C1F97 #97501F
split-complementary
#2A971F #501F97 #971F66
monochromatic
#0E310A #1C6415 #2A971F #38CA29 #61DC54
Accessibility & contrast
On white
3.79
#2A971F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#2A971F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2A971F
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A971F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2A971F | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#099281
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #2a971f; /* rgb */ color: rgb(42, 151, 31); /* oklch */ color: oklch(59.3% 0.182 141.8);
Tailwind
colors: {
custom: {
50: '#75b765',
500: '#2a971f',
950: '#000000',
},
}SCSS
$custom: #2a971f; $custom-light: #75b765; $custom-dark: #000000;
JSON
{
"hex": "#2a971f",
"rgb": {
"r": 42,
"g": 151,
"b": 31
},
"hsl": {
"h": 114.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.59304,
"c": 0.18171,
"h": 141.8
},
"luminance": 0.22724
}Semantic roles & 50–950 ramp
primary
#2A971F
secondary
#B552BF
accent
#3FE9D9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A