#2C871A#2C871A
#2C871A is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.9% C 0.165 H 140.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2C871A |
|---|---|
| RGB | rgb(44, 135, 26) |
| HSL | hsl(110, 68%, 32%) |
| HSV | hsv(110, 81%, 53%) |
| CMYK | cmyk(67.4%, 0%, 80.7%, 47.1%) |
| CIE-LAB | lab(49.42, -46.82, 46.76) |
| CIE-LCH | lch(49.42, 66.17, 135.03°) |
| OKLab | oklab(54.86% -0.1281 0.1043) |
| OKLCH | oklch(54.86% 0.165 140.9) |
| XYZ | xyz(9.8886, 17.9370, 3.9181) |
| Luminance | 0.1794 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.80
Tree Green
#2A7E19
ΔE00 3.24
Emerald Green
#028F1E
ΔE00 3.28
Dark Grass Green
#388004
ΔE00 3.33
Green
#008000
ΔE00 3.47
True Green
#089404
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C871A #751A87
analogous
#63871A #2C871A #1A873F
triadic
#2C871A #1A2C87 #871A2C
tetradic
#2C871A #1A6387 #751A87 #873F1A
square
#2C871A #1A6387 #751A87 #873F1A
split-complementary
#2C871A #3F1A87 #871A63
monochromatic
#0B2006 #1B5410 #2C871A #3DBA24 #5ADA41
Accessibility & contrast
On white
4.58
#2C871A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.59
#2C871A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #2C871A
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C871A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##2C871A | 1.00 | 4.58 | 4.59 | 4.59 |
| #FFFFFF | 4.58 | 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)
#8B7A00
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#1B8273
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #2c871a; /* rgb */ color: rgb(44, 135, 26); /* oklch */ color: oklch(54.9% 0.165 140.9);
Tailwind
colors: {
custom: {
50: '#73ab60',
500: '#2c871a',
950: '#000000',
},
}SCSS
$custom: #2c871a; $custom-light: #73ab60; $custom-dark: #000000;
JSON
{
"hex": "#2c871a",
"rgb": {
"r": 44,
"g": 135,
"b": 26
},
"hsl": {
"h": 110.092,
"s": 67.702,
"l": 31.569
},
"oklch": {
"l": 0.54858,
"c": 0.16516,
"h": 140.9
},
"luminance": 0.17938
}Semantic roles & 50–950 ramp
primary
#2C871A
secondary
#A742BA
accent
#3DEBCE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79