#2D791F#2D791F
#2D791F is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.145 H 140.8°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2D791F |
|---|---|
| RGB | rgb(45, 121, 31) |
| HSL | hsl(111, 59%, 30%) |
| HSV | hsv(111, 74%, 47%) |
| CMYK | cmyk(62.8%, 0%, 74.4%, 52.5%) |
| CIE-LAB | lab(44.70, -41.02, 40.28) |
| CIE-LCH | lch(44.70, 57.49, 135.52°) |
| OKLab | oklab(50.97% -0.1122 0.0914) |
| OKLCH | oklch(50.97% 0.145 140.8) |
| XYZ | xyz(8.1665, 14.3308, 3.6318) |
| Luminance | 0.1433 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.02
Green
#008000
ΔE00 3.96
Darkish Green
#287C37
ΔE00 4.16
Dark Grass Green
#388004
ΔE00 4.34
Forestgreen (CSS)
#228B22
ΔE00 6.40
Jungle Green
#048243
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D791F #6B1F79
analogous
#5A791F #2D791F #1F793E
triadic
#2D791F #1F2D79 #791F2D
tetradic
#2D791F #1F5A79 #6B1F79 #793E1F
square
#2D791F #1F5A79 #6B1F79 #793E1F
split-complementary
#2D791F #3E1F79 #791F5A
monochromatic
#091806 #1B4813 #2D791F #3FAA2B #59CF43
Accessibility & contrast
On white
5.43
#2D791F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#2D791F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2D791F
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D791F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D791F | 1.00 | 5.43 | 3.87 | 5.43 |
| #FFFFFF | 5.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#227567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2d791f; /* rgb */ color: rgb(45, 121, 31); /* oklch */ color: oklch(51.0% 0.145 140.8);
Tailwind
colors: {
custom: {
50: '#70a061',
500: '#2d791f',
950: '#000000',
},
}SCSS
$custom: #2d791f; $custom-light: #70a061; $custom-dark: #000000;
JSON
{
"hex": "#2d791f",
"rgb": {
"r": 45,
"g": 121,
"b": 31
},
"hsl": {
"h": 110.667,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.50973,
"c": 0.14477,
"h": 140.8
},
"luminance": 0.14332
}Semantic roles & 50–950 ramp
primary
#2D791F
secondary
#9D47AC
accent
#45E2CA
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79