I see this question has already been thoroughly answered but I also wrote an answer for the first image for fun.

\documentclass[tikz]{standalone}
\definecolor{light blue}{rgb}{0,0.74998,1}
\definecolor{foresty}{rgb}{0.75002,1,0}
\definecolor{forestish}{cmyk}{0.99998,0,1,0}
\definecolor{dead ocean}{cmyk}{1,0.49998,0,0}
\begin{document}
\begin{tikzpicture}[scale=3,very thick,color=black!50, thick]
\draw[fill=forestish] (2,0) -- (3,2) -- (3,0) -- cycle;
\draw[fill=dead ocean] (0,0) -- (0,1) -- (2,0) -- cycle;
\draw[fill=light blue] (0,1) -- (0,3) -- (1,3) -- cycle;
\draw[fill=foresty] (1,3) -- (3,3) -- (3,2) -- cycle;
\draw[fill=white, ultra thick] (0,1) -- (1,3) -- (3,2) -- (2,0) -- cycle node at (1.5,1.5)[text=black,anchor=center]{\Huge $c^2$};
\draw[black] (0,1) -- (1,3) node at (0.5,2)[anchor=west]{\huge c};
\draw[black] (1,3) -- (3,2) node at (2,2.5)[anchor=north]{\huge c};
\draw[black] (3,2) -- (2,0) node at (2.5,1)[anchor=east]{\huge c};
\draw[black] (2,0) -- (0,1) node at (1,0.5)[anchor=south]{\huge c};
\draw[black] (2,0) -- (0,1) node at (1,0.5)[anchor=south]{\huge c};
\draw[black] (1,3) -- (3,3) node at (2,3)[anchor=north]{\huge b};
\draw[black] (3,0) -- (3,2) node at (3,1)[anchor=east]{\huge b};
\draw[black] (0,0) -- (2,0) node at (1,0)[anchor=south]{\huge b};
\draw[black] (0,1) -- (0,3) node at (0,2)[anchor=west]{\huge b};
\draw[black] (0,3) -- (1,3) node at (0.5,3)[anchor=north]{\huge a};
\draw[black] (3,3) -- (3,2) node at (3,2.5)[anchor=east]{\huge a};
\draw[black] (2,0) -- (3,0) node at (2.5,0)[anchor=south]{\huge a};
\draw[black] (0,0) -- (0,1) node at (0,0.5)[anchor=west]{\huge a};
\end{tikzpicture}
\end{document}