#2F7917#2F7917
#2F7917 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.149 H 139.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F7917 |
|---|---|
| RGB | rgb(47, 121, 23) |
| HSL | hsl(105, 68%, 28%) |
| HSV | hsv(105, 81%, 47%) |
| CMYK | cmyk(61.2%, 0%, 81%, 52.5%) |
| CIE-LAB | lab(44.72, -41.10, 43.30) |
| CIE-LCH | lch(44.72, 59.70, 133.51°) |
| OKLab | oklab(50.99% -0.1131 0.0965) |
| OKLCH | oklch(50.99% 0.149 139.5) |
| XYZ | xyz(8.1640, 14.3402, 3.1482) |
| Luminance | 0.1434 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.81
Dark Grass Green
#388004
ΔE00 3.48
Green
#008000
ΔE00 3.61
Darkish Green
#287C37
ΔE00 5.25
Forestgreen (CSS)
#228B22
ΔE00 6.42
Avocado
#568203
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F7917 #611779
analogous
#607917 #2F7917 #177930
triadic
#2F7917 #172F79 #79172F
tetradic
#2F7917 #176079 #611779 #793017
square
#2F7917 #176079 #611779 #793017
split-complementary
#2F7917 #301779 #791760
monochromatic
#0A1A05 #1B460D #2F7917 #43AC21 #5BD832
Accessibility & contrast
On white
5.43
#2F7917 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#2F7917 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2F7917
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F7917 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F7917 | 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)
#7D6E00
Deuteranopia (green-blind)
#746722
Tritanopia (blue-blind)
#267567
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #2f7917; /* rgb */ color: rgb(47, 121, 23); /* oklch */ color: oklch(51.0% 0.149 139.5);
Tailwind
colors: {
custom: {
50: '#71a05d',
500: '#2f7917',
950: '#000000',
},
}SCSS
$custom: #2f7917; $custom-light: #71a05d; $custom-dark: #000000;
JSON
{
"hex": "#2f7917",
"rgb": {
"r": 47,
"g": 121,
"b": 23
},
"hsl": {
"h": 105.306,
"s": 68.056,
"l": 28.235
},
"oklch": {
"l": 0.50986,
"c": 0.14867,
"h": 139.5
},
"luminance": 0.14341
}Semantic roles & 50–950 ramp
primary
#2F7917
secondary
#933EAE
accent
#3DEBC0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79