#2C811F#2C811F
#2C811F is a mid, vivid green. Relative luminance 0.163; OKLCH L 53.2% C 0.155 H 141.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2C811F |
|---|---|
| RGB | rgb(44, 129, 31) |
| HSL | hsl(112, 61%, 31%) |
| HSV | hsv(112, 76%, 51%) |
| CMYK | cmyk(65.9%, 0%, 76%, 49.4%) |
| CIE-LAB | lab(47.41, -44.28, 43.02) |
| CIE-LCH | lch(47.41, 61.74, 135.83°) |
| OKLab | oklab(53.2% -0.121 0.0972) |
| OKLCH | oklch(53.2% 0.155 141.2) |
| XYZ | xyz(9.1358, 16.3340, 3.9674) |
| Luminance | 0.1633 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.17
Green
#008000
ΔE00 2.78
Dark Grass Green
#388004
ΔE00 3.13
Forestgreen (CSS)
#228B22
ΔE00 3.57
Darkish Green
#287C37
ΔE00 4.89
Emerald Green
#028F1E
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C811F #741F81
analogous
#5D811F #2C811F #1F8143
triadic
#2C811F #1F2C81 #811F2C
tetradic
#2C811F #1F5D81 #741F81 #81431F
square
#2C811F #1F5D81 #741F81 #81431F
split-complementary
#2C811F #431F81 #811F5D
monochromatic
#0A1E07 #1B5013 #2C811F #3DB22B #5AD347
Accessibility & contrast
On white
4.92
#2C811F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#2C811F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C811F
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C811F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C811F | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84750C
Deuteranopia (green-blind)
#7A6E29
Tritanopia (blue-blind)
#1D7D6E
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #2c811f; /* rgb */ color: rgb(44, 129, 31); /* oklch */ color: oklch(53.2% 0.155 141.2);
Tailwind
colors: {
custom: {
50: '#71a662',
500: '#2c811f',
950: '#000000',
},
}SCSS
$custom: #2c811f; $custom-light: #71a662; $custom-dark: #000000;
JSON
{
"hex": "#2c811f",
"rgb": {
"r": 44,
"g": 129,
"b": 31
},
"hsl": {
"h": 112.041,
"s": 61.25,
"l": 31.373
},
"oklch": {
"l": 0.53203,
"c": 0.15517,
"h": 141.2
},
"luminance": 0.16335
}Semantic roles & 50–950 ramp
primary
#2C811F
secondary
#A648B4
accent
#43E4CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A