#2D791C#2D791C
#2D791C is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.147 H 140.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #2D791C |
|---|---|
| RGB | rgb(45, 121, 28) |
| HSL | hsl(109, 62%, 29%) |
| HSV | hsv(109, 77%, 47%) |
| CMYK | cmyk(62.8%, 0%, 76.9%, 52.5%) |
| CIE-LAB | lab(44.68, -41.27, 41.44) |
| CIE-LCH | lch(44.68, 58.48, 134.88°) |
| OKLab | oklab(50.95% -0.1131 0.0934) |
| OKLCH | oklch(50.95% 0.147 140.4) |
| XYZ | xyz(8.1288, 14.3157, 3.4332) |
| Luminance | 0.1432 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.85
Green
#008000
ΔE00 3.75
Dark Grass Green
#388004
ΔE00 4.03
Darkish Green
#287C37
ΔE00 4.55
Forestgreen (CSS)
#228B22
ΔE00 6.38
Darkgreen
#006400
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D791C #681C79
analogous
#5C791C #2D791C #1C793A
triadic
#2D791C #1C2D79 #791C2D
tetradic
#2D791C #1C5C79 #681C79 #793A1C
square
#2D791C #1C5C79 #681C79 #793A1C
split-complementary
#2D791C #3A1C79 #791C5C
monochromatic
#091906 #1B4710 #2D791C #3FAB28 #58D23D
Accessibility & contrast
On white
5.44
#2D791C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.86
#2D791C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2D791C
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D791C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D791C | 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)
#7C6E0A
Deuteranopia (green-blind)
#736726
Tritanopia (blue-blind)
#227567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2d791c; /* rgb */ color: rgb(45, 121, 28); /* oklch */ color: oklch(50.9% 0.147 140.4);
Tailwind
colors: {
custom: {
50: '#70a05f',
500: '#2d791c',
950: '#000000',
},
}SCSS
$custom: #2d791c; $custom-light: #70a05f; $custom-dark: #000000;
JSON
{
"hex": "#2d791c",
"rgb": {
"r": 45,
"g": 121,
"b": 28
},
"hsl": {
"h": 109.032,
"s": 62.416,
"l": 29.216
},
"oklch": {
"l": 0.50949,
"c": 0.14669,
"h": 140.4
},
"luminance": 0.14316
}Semantic roles & 50–950 ramp
primary
#2D791C
secondary
#9A44AD
accent
#42E5C8
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79