Another type of black sand, found on beaches near a volcano, consists of tiny fragments of basalt.
Larger waves can sort out sand grains leaving deposits of heavy minerals visible on the surface of erosion escarpments.
Purple or ruby-colored garnet sand often forms a showy surface dressing on ocean beach placers.
[1] When lava contacts water, it cools rapidly and shatters into sand and fragmented debris of various size.
A large lava flow entering an ocean may produce enough basalt fragments to build a new black sand beach almost overnight.