spotting but period has been over for days

so my period has been over for about a week & im still spotting kind of. its light brown spotting & i was masturbating last night & my cum was white & then light pinkish & then light brown ?? why ?