#2A871C#2A871C
#2A871C is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.165 H 141.3°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2A871C |
|---|---|
| RGB | rgb(42, 135, 28) |
| HSL | hsl(112, 66%, 32%) |
| HSV | hsv(112, 79%, 53%) |
| CMYK | cmyk(68.9%, 0%, 79.3%, 47.1%) |
| CIE-LAB | lab(49.38, -47.12, 46.04) |
| CIE-LCH | lch(49.38, 65.88, 135.67°) |
| OKLab | oklab(54.81% -0.1287 0.103) |
| OKLCH | oklch(54.81% 0.165 141.3) |
| XYZ | xyz(9.8279, 17.9030, 4.0361) |
| Luminance | 0.1790 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.62
Emerald Green
#028F1E
ΔE00 3.15
Tree Green
#2A7E19
ΔE00 3.19
Green
#008000
ΔE00 3.44
Dark Grass Green
#388004
ΔE00 3.55
True Green
#089404
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A871C #791C87
analogous
#5F871C #2A871C #1C8744
triadic
#2A871C #1C2A87 #871C2A
tetradic
#2A871C #1C5F87 #791C87 #87441C
square
#2A871C #1C5F87 #791C87 #87441C
split-complementary
#2A871C #441C87 #871C5F
monochromatic
#0A2207 #1A5411 #2A871C #3ABA27 #58D845
Accessibility & contrast
On white
4.58
#2A871C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#2A871C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2A871C
4.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A871C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2A871C | 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)
#8B7A02
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#178373
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #2a871c; /* rgb */ color: rgb(42, 135, 28); /* oklch */ color: oklch(54.8% 0.165 141.3);
Tailwind
colors: {
custom: {
50: '#72ab61',
500: '#2a871c',
950: '#000000',
},
}SCSS
$custom: #2a871c; $custom-light: #72ab61; $custom-dark: #000000;
JSON
{
"hex": "#2a871c",
"rgb": {
"r": 42,
"g": 135,
"b": 28
},
"hsl": {
"h": 112.15,
"s": 65.644,
"l": 31.961
},
"oklch": {
"l": 0.54812,
"c": 0.16487,
"h": 141.3
},
"luminance": 0.17904
}Semantic roles & 50–950 ramp
primary
#2A871C
secondary
#AB45BA
accent
#3FE9D2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A