When the cap opens, spores are released from the gills of a mushroom.
Spores of
Psilocybe cubensis are violet, thus giving surfaces where they settle a violet-brownish powdery look.
Don't wonder if you see spores also on the top of the cap, the spores manage to get there either because there is a sporulating cap located above the cap or stem in question, but also because spores are transported upward by slow air currents in the terrarium and then settle at the top the caps.