#2A871F#2A871F
#2A871F is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.163 H 141.6°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2A871F |
|---|---|
| RGB | rgb(42, 135, 31) |
| HSL | hsl(114, 63%, 33%) |
| HSV | hsv(114, 77%, 53%) |
| CMYK | cmyk(68.9%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(49.40, -46.90, 44.99) |
| CIE-LCH | lch(49.40, 64.99, 136.19°) |
| OKLab | oklab(54.83% -0.1279 0.1013) |
| OKLCH | oklch(54.83% 0.163 141.6) |
| XYZ | xyz(9.8656, 17.9181, 4.2347) |
| Luminance | 0.1792 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.51
Emerald Green
#028F1E
ΔE00 3.12
Tree Green
#2A7E19
ΔE00 3.19
Green
#008000
ΔE00 3.55
Dark Grass Green
#388004
ΔE00 3.77
True Green
#089404
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A871F #7C1F87
analogous
#5E871F #2A871F #1F8748
triadic
#2A871F #1F2A87 #871F2A
tetradic
#2A871F #1F5E87 #7C1F87 #87481F
square
#2A871F #1F5E87 #7C1F87 #87481F
split-complementary
#2A871F #481F87 #871F5E
monochromatic
#0B2308 #1B5514 #2A871F #39B92A #59D64B
Accessibility & contrast
On white
4.58
#2A871F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#2A871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2A871F
4.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2A871F | 1.00 | 4.58 | 4.58 | 4.58 |
| #FFFFFF | 4.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#7F732A
Tritanopia (blue-blind)
#168373
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #2a871f; /* rgb */ color: rgb(42, 135, 31); /* oklch */ color: oklch(54.8% 0.163 141.6);
Tailwind
colors: {
custom: {
50: '#72ab62',
500: '#2a871f',
950: '#000000',
},
}SCSS
$custom: #2a871f; $custom-light: #72ab62; $custom-dark: #000000;
JSON
{
"hex": "#2a871f",
"rgb": {
"r": 42,
"g": 135,
"b": 31
},
"hsl": {
"h": 113.654,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.54834,
"c": 0.16319,
"h": 141.6
},
"luminance": 0.17919
}Semantic roles & 50–950 ramp
primary
#2A871F
secondary
#AD4AB8
accent
#42E6D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A