I have a problem with coloring a area with three restrictions. The area I want to color is between the points: (0,0), (0,1.5), (2,1.5), (2.5,1.25), (2.5,0), (0,0).
As you can see I've managed to do something but no matter what I try either the big triangle or the little one will be colored. I hope you can help.

\begin{tikzpicture}
\begin{axis}[
axis lines = left,
width=10cm, height=8cm,
ymin=0,
xmin=0,
ymax=3,
xmax=6,
xticklabels={,,},
yticklabels={,,},
clip=false
]
\addplot[smooth][domain=0:5, color=black,line width=0.4mm]{1.5};
\addplot[smooth][name path=f,domain=0:5, color=black, line width=0.4mm]{(5-x)/2};
\addplot[smooth] coordinates {(2.5,-0.1) (2.5,3)} [color=black, line width=0.4 mm];
\path[name path=axis](axis cs:0,0) -- (axis cs:2.5,0);
\addplot [
thick,
color=brown,
fill=blue,
fill opacity=0.5
]
fill between[
of=axis and f,
soft clip={domain=0:2.5},
];
\node at (axis cs:-0.3,-0.3){$(0,0)$};
\node at (axis cs:2.5,-0.3){$(2.5,0)$};
\node at (axis cs:5,-0.3){$(5,0)$};
\node at (axis cs:-0.6,2.5){$(0,2.5)$};
\node at (axis cs:1.7,1.3){$(2,1.5)$};
\node at (axis cs:3.2,1.7){$(2.5,1.5)$};
\node at (axis cs:3.3,1.25){$(2.5,1.25)$};
\node at (axis cs:-0.6,1.5){$(0,1.5)$};
\fill (0,0) circle[radius=2pt];
\fill (2.5,0) circle[radius=2pt];
\fill (5,0) circle[radius=2pt];
\fill (0,2.5) circle[radius=2pt];
\fill (2,1.5) circle[radius=2pt];
\fill (2.5,1.5) circle[radius=2pt];
\fill (2.5,1.25) circle[radius=2pt];
\fill (0,1.5) circle[radius=2pt];
\addplot[dashed][domain=-1/2:1/2, color=black, line width=0.4mm]{-x/3};
\end{axis}
\end{tikzpicture}


\fill[red,draw=red] plot coordinates { (0,0) (0,1.5) (2,1.5) (2.5,1.25) (2.5,0) } ;– Bobyandbob Feb 25 '18 at 14:09