Both are caused due to blood vessels breaking under the skin. Petechiae are pinpoint spots that are red, purple, or brown, whereas purpura is formed in larger areas that can be purple.