#2C842F#2C842F
#2C842F is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.2% C 0.147 H 143.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #2C842F |
|---|---|
| RGB | rgb(44, 132, 47) |
| HSL | hsl(122, 50%, 35%) |
| HSV | hsv(122, 67%, 52%) |
| CMYK | cmyk(66.7%, 0%, 64.4%, 48.2%) |
| CIE-LAB | lab(48.56, -43.81, 37.38) |
| CIE-LCH | lch(48.56, 57.59, 139.53°) |
| OKLab | oklab(54.2% -0.1188 0.0873) |
| OKLCH | oklch(54.2% 0.147 143.7) |
| XYZ | xyz(9.8025, 17.2422, 5.5003) |
| Luminance | 0.1724 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 3.30
Tree Green
#2A7E19
ΔE00 3.34
Darkish Green
#287C37
ΔE00 3.77
Green
#008000
ΔE00 4.63
Emerald Green
#028F1E
ΔE00 4.77
Jungle Green
#048243
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C842F #842C81
analogous
#55842C #2C842F #2C845B
triadic
#2C842F #2F2C84 #842F2C
tetradic
#2C842F #2C5584 #842C81 #845B2C
square
#2C842F #2C5584 #842C81 #845B2C
split-complementary
#2C842F #5B2C84 #842C55
monochromatic
#0D280E #1D561F #2C842F #3BB23F #60CA64
Accessibility & contrast
On white
4.72
#2C842F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#2C842F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C842F
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C842F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C842F | 1.00 | 4.72 | 4.45 | 4.72 |
| #FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877825
Deuteranopia (green-blind)
#7C7036
Tritanopia (blue-blind)
#178072
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #2c842f; /* rgb */ color: rgb(44, 132, 47); /* oklch */ color: oklch(54.2% 0.147 143.7);
Tailwind
colors: {
custom: {
50: '#71a96b',
500: '#2c842f',
950: '#000000',
},
}SCSS
$custom: #2c842f; $custom-light: #71a96b; $custom-dark: #000000;
JSON
{
"hex": "#2c842f",
"rgb": {
"r": 44,
"g": 132,
"b": 47
},
"hsl": {
"h": 122.045,
"s": 50,
"l": 34.51
},
"oklch": {
"l": 0.54201,
"c": 0.14745,
"h": 143.7
},
"luminance": 0.17243
}Semantic roles & 50–950 ramp
primary
#2C842F
secondary
#B05CAD
accent
#4ED5DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A