\(\left(a+b+c\right)\left(a+b-c\right)=3ab\)
\(\Leftrightarrow\left(a+b\right)^2-c^2=3ab\)
\(\Leftrightarrow a^2+b^2+2ab-c^2=3ab\)
\(\Leftrightarrow a^2+b^2-c^2=ab\)
\(\Leftrightarrow\dfrac{a^2+b^2-c^2}{2ab}=\dfrac{1}{2}\)
\(\Rightarrow cosC=\dfrac{a^2+b^2-c^2}{2ab}=\dfrac{1}{2}\)
\(\Rightarrow C=60^0\)