#2F791D#2F791D
#2F791D is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.145 H 140.2°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2F791D |
|---|---|
| RGB | rgb(47, 121, 29) |
| HSL | hsl(108, 61%, 29%) |
| HSV | hsv(108, 76%, 47%) |
| CMYK | cmyk(61.2%, 0%, 76%, 52.5%) |
| CIE-LAB | lab(44.75, -40.66, 41.15) |
| CIE-LCH | lch(44.75, 57.85, 134.66°) |
| OKLab | oklab(51.03% -0.1115 0.0929) |
| OKLCH | oklch(51.03% 0.145 140.2) |
| XYZ | xyz(8.2311, 14.3671, 3.5015) |
| Luminance | 0.1437 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.91
Green
#008000
ΔE00 3.90
Dark Grass Green
#388004
ΔE00 4.01
Darkish Green
#287C37
ΔE00 4.53
Forestgreen (CSS)
#228B22
ΔE00 6.40
Darkgreen
#006400
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F791D #671D79
analogous
#5D791D #2F791D #1D7939
triadic
#2F791D #1D2F79 #791D2F
tetradic
#2F791D #1D5D79 #671D79 #79391D
square
#2F791D #1D5D79 #671D79 #79391D
split-complementary
#2F791D #391D79 #791D5D
monochromatic
#0A1906 #1C4811 #2F791D #42AA29 #5CD13F
Accessibility & contrast
On white
5.42
#2F791D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#2F791D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F791D
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F791D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F791D | 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)
#7C6E0C
Deuteranopia (green-blind)
#736826
Tritanopia (blue-blind)
#257567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2f791d; /* rgb */ color: rgb(47, 121, 29); /* oklch */ color: oklch(51.0% 0.145 140.2);
Tailwind
colors: {
custom: {
50: '#71a060',
500: '#2f791d',
950: '#000000',
},
}SCSS
$custom: #2f791d; $custom-light: #71a060; $custom-dark: #000000;
JSON
{
"hex": "#2f791d",
"rgb": {
"r": 47,
"g": 121,
"b": 29
},
"hsl": {
"h": 108.261,
"s": 61.333,
"l": 29.412
},
"oklch": {
"l": 0.51029,
"c": 0.14518,
"h": 140.2
},
"luminance": 0.14368
}Semantic roles & 50–950 ramp
primary
#2F791D
secondary
#9845AD
accent
#43E4C5
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79