#2F791A#2F791A
#2F791A is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.147 H 139.8°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F791A |
|---|---|
| RGB | rgb(47, 121, 26) |
| HSL | hsl(107, 65%, 29%) |
| HSV | hsv(107, 79%, 47%) |
| CMYK | cmyk(61.2%, 0%, 78.5%, 52.5%) |
| CIE-LAB | lab(44.73, -40.89, 42.26) |
| CIE-LCH | lch(44.73, 58.81, 134.06°) |
| OKLab | oklab(51.01% -0.1123 0.0948) |
| OKLCH | oklch(51.01% 0.147 139.8) |
| XYZ | xyz(8.1958, 14.3529, 3.3156) |
| Luminance | 0.1435 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.82
Dark Grass Green
#388004
ΔE00 3.73
Green
#008000
ΔE00 3.73
Darkish Green
#287C37
ΔE00 4.90
Forestgreen (CSS)
#228B22
ΔE00 6.40
Darkgreen
#006400
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F791A #641A79
analogous
#5F791A #2F791A #1A7935
triadic
#2F791A #1A2F79 #791A2F
tetradic
#2F791A #1A5F79 #641A79 #79351A
square
#2F791A #1A5F79 #641A79 #79351A
split-complementary
#2F791A #351A79 #791A5F
monochromatic
#0A1905 #1B470F #2F791A #43AB25 #5BD439
Accessibility & contrast
On white
5.43
#2F791A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#2F791A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F791A
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F791A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F791A | 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)
#7D6E05
Deuteranopia (green-blind)
#736824
Tritanopia (blue-blind)
#267567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2f791a; /* rgb */ color: rgb(47, 121, 26); /* oklch */ color: oklch(51.0% 0.147 139.8);
Tailwind
colors: {
custom: {
50: '#71a05e',
500: '#2f791a',
950: '#000000',
},
}SCSS
$custom: #2f791a; $custom-light: #71a05e; $custom-dark: #000000;
JSON
{
"hex": "#2f791a",
"rgb": {
"r": 47,
"g": 121,
"b": 26
},
"hsl": {
"h": 106.737,
"s": 64.626,
"l": 28.824
},
"oklch": {
"l": 0.51007,
"c": 0.147,
"h": 139.8
},
"luminance": 0.14354
}Semantic roles & 50–950 ramp
primary
#2F791A
secondary
#9641AD
accent
#40E8C3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79