#2F791C#2F791C
#2F791C is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.146 H 140.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2F791C |
|---|---|
| RGB | rgb(47, 121, 28) |
| HSL | hsl(108, 62%, 29%) |
| HSV | hsv(108, 77%, 47%) |
| CMYK | cmyk(61.2%, 0%, 76.9%, 52.5%) |
| CIE-LAB | lab(44.75, -40.74, 41.53) |
| CIE-LCH | lch(44.75, 58.18, 134.45°) |
| OKLab | oklab(51.02% -0.1118 0.0936) |
| OKLCH | oklch(51.02% 0.146 140.1) |
| XYZ | xyz(8.2189, 14.3622, 3.4374) |
| Luminance | 0.1436 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.87
Green
#008000
ΔE00 3.84
Dark Grass Green
#388004
ΔE00 3.91
Darkish Green
#287C37
ΔE00 4.66
Forestgreen (CSS)
#228B22
ΔE00 6.40
Darkgreen
#006400
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F791C #661C79
analogous
#5E791C #2F791C #1C7938
triadic
#2F791C #1C2F79 #791C2F
tetradic
#2F791C #1C5E79 #661C79 #79381C
square
#2F791C #1C5E79 #661C79 #79381C
split-complementary
#2F791C #381C79 #791C5E
monochromatic
#0A1906 #1C4710 #2F791C #42AB28 #5CD23D
Accessibility & contrast
On white
5.42
#2F791C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#2F791C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F791C
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F791C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F791C | 1.00 | 5.42 | 3.87 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6E0A
Deuteranopia (green-blind)
#736826
Tritanopia (blue-blind)
#267567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2f791c; /* rgb */ color: rgb(47, 121, 28); /* oklch */ color: oklch(51.0% 0.146 140.1);
Tailwind
colors: {
custom: {
50: '#71a05f',
500: '#2f791c',
950: '#000000',
},
}SCSS
$custom: #2f791c; $custom-light: #71a05f; $custom-dark: #000000;
JSON
{
"hex": "#2f791c",
"rgb": {
"r": 47,
"g": 121,
"b": 28
},
"hsl": {
"h": 107.742,
"s": 62.416,
"l": 29.216
},
"oklch": {
"l": 0.51022,
"c": 0.1458,
"h": 140.1
},
"luminance": 0.14363
}Semantic roles & 50–950 ramp
primary
#2F791C
secondary
#9844AD
accent
#42E5C4
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79