color changing

my period blood is sometimes red and sometimes brown, does anyone know why?