#2F791F#2F791F
#2F791F is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.144 H 140.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2F791F |
|---|---|
| RGB | rgb(47, 121, 31) |
| HSL | hsl(109, 59%, 30%) |
| HSV | hsv(109, 74%, 47%) |
| CMYK | cmyk(61.2%, 0%, 74.4%, 52.5%) |
| CIE-LAB | lab(44.77, -40.50, 40.37) |
| CIE-LCH | lch(44.77, 57.18, 135.09°) |
| OKLab | oklab(51.05% -0.1109 0.0916) |
| OKLCH | oklch(51.05% 0.144 140.5) |
| XYZ | xyz(8.2566, 14.3773, 3.6360) |
| Luminance | 0.1438 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.02
Green
#008000
ΔE00 4.03
Dark Grass Green
#388004
ΔE00 4.22
Darkish Green
#287C37
ΔE00 4.27
Forestgreen (CSS)
#228B22
ΔE00 6.42
Jungle Green
#048243
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F791F #691F79
analogous
#5C791F #2F791F #1F793C
triadic
#2F791F #1F2F79 #791F2F
tetradic
#2F791F #1F5C79 #691F79 #793C1F
square
#2F791F #1F5C79 #691F79 #793C1F
split-complementary
#2F791F #3C1F79 #791F5C
monochromatic
#091806 #1C4813 #2F791F #42AA2B #5CCF43
Accessibility & contrast
On white
5.42
#2F791F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#2F791F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F791F
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F791F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F791F | 1.00 | 5.42 | 3.88 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#736828
Tritanopia (blue-blind)
#257567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2f791f; /* rgb */ color: rgb(47, 121, 31); /* oklch */ color: oklch(51.0% 0.144 140.5);
Tailwind
colors: {
custom: {
50: '#71a061',
500: '#2f791f',
950: '#000000',
},
}SCSS
$custom: #2f791f; $custom-light: #71a061; $custom-dark: #000000;
JSON
{
"hex": "#2f791f",
"rgb": {
"r": 47,
"g": 121,
"b": 31
},
"hsl": {
"h": 109.333,
"s": 59.211,
"l": 29.804
},
"oklch": {
"l": 0.51046,
"c": 0.14388,
"h": 140.5
},
"luminance": 0.14378
}Semantic roles & 50–950 ramp
primary
#2F791F
secondary
#9A47AC
accent
#45E2C6
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79