#2C791B#2C791B
#2C791B is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.148 H 140.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2C791B |
|---|---|
| RGB | rgb(44, 121, 27) |
| HSL | hsl(109, 64%, 29%) |
| HSV | hsv(109, 78%, 47%) |
| CMYK | cmyk(63.6%, 0%, 77.7%, 52.5%) |
| CIE-LAB | lab(44.64, -41.60, 41.77) |
| CIE-LCH | lch(44.64, 58.95, 134.89°) |
| OKLab | oklab(50.91% -0.114 0.094) |
| OKLCH | oklch(50.91% 0.148 140.5) |
| XYZ | xyz(8.0735, 14.2886, 3.3692) |
| Luminance | 0.1429 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.82
Green
#008000
ΔE00 3.64
Dark Grass Green
#388004
ΔE00 4.00
Darkish Green
#287C37
ΔE00 4.63
Forestgreen (CSS)
#228B22
ΔE00 6.37
Darkgreen
#006400
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C791B #681B79
analogous
#5B791B #2C791B #1B7939
triadic
#2C791B #1B2C79 #791B2C
tetradic
#2C791B #1B5B79 #681B79 #79391B
square
#2C791B #1B5B79 #681B79 #79391B
split-complementary
#2C791B #391B79 #791B5B
monochromatic
#091906 #1A4710 #2C791B #3EAB26 #57D33B
Accessibility & contrast
On white
5.44
#2C791B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.86
#2C791B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2C791B
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C791B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C791B | 1.00 | 5.44 | 3.86 | 5.44 |
| #FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6D07
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#217567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2c791b; /* rgb */ color: rgb(44, 121, 27); /* oklch */ color: oklch(50.9% 0.148 140.5);
Tailwind
colors: {
custom: {
50: '#70a05f',
500: '#2c791b',
950: '#000000',
},
}SCSS
$custom: #2c791b; $custom-light: #70a05f; $custom-dark: #000000;
JSON
{
"hex": "#2c791b",
"rgb": {
"r": 44,
"g": 121,
"b": 27
},
"hsl": {
"h": 109.149,
"s": 63.514,
"l": 29.02
},
"oklch": {
"l": 0.50906,
"c": 0.14774,
"h": 140.5
},
"luminance": 0.14289
}Semantic roles & 50–950 ramp
primary
#2C791B
secondary
#9A43AD
accent
#41E7C9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79