#2C871F#2C871F
#2C871F is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.162 H 141.4°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2C871F |
|---|---|
| RGB | rgb(44, 135, 31) |
| HSL | hsl(113, 63%, 33%) |
| HSV | hsv(113, 77%, 53%) |
| CMYK | cmyk(67.4%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(49.45, -46.46, 45.06) |
| CIE-LCH | lch(49.45, 64.73, 135.88°) |
| OKLab | oklab(54.89% -0.1269 0.1014) |
| OKLCH | oklch(54.89% 0.162 141.4) |
| XYZ | xyz(9.9495, 17.9613, 4.2386) |
| Luminance | 0.1796 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.58
Emerald Green
#028F1E
ΔE00 3.20
Tree Green
#2A7E19
ΔE00 3.20
Green
#008000
ΔE00 3.63
Dark Grass Green
#388004
ΔE00 3.67
True Green
#089404
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C871F #7A1F87
analogous
#60871F #2C871F #1F8746
triadic
#2C871F #1F2C87 #871F2C
tetradic
#2C871F #1F6087 #7A1F87 #87461F
square
#2C871F #1F6087 #7A1F87 #87461F
split-complementary
#2C871F #461F87 #871F60
monochromatic
#0C2308 #1C5514 #2C871F #3CB92A #5CD64B
Accessibility & contrast
On white
4.57
#2C871F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#2C871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2C871F
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2C871F | 1.00 | 4.57 | 4.59 | 4.59 |
| #FFFFFF | 4.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#1A8373
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #2c871f; /* rgb */ color: rgb(44, 135, 31); /* oklch */ color: oklch(54.9% 0.162 141.4);
Tailwind
colors: {
custom: {
50: '#72ab62',
500: '#2c871f',
950: '#000000',
},
}SCSS
$custom: #2c871f; $custom-light: #72ab62; $custom-dark: #000000;
JSON
{
"hex": "#2c871f",
"rgb": {
"r": 44,
"g": 135,
"b": 31
},
"hsl": {
"h": 112.5,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.54892,
"c": 0.16244,
"h": 141.4
},
"luminance": 0.17962
}Semantic roles & 50–950 ramp
primary
#2C871F
secondary
#AA4AB8
accent
#42E6D1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A