The present invention provides a composition for use with photoacoustic or thermoacoustic imaging, comprising a sufficient amount of the graphene-like nanoparticles or graphitic nano- or microparticles and one or more physiologically acceptable carriers or excipients. The present invention also provides methods of using the graphene-like nanoparticles or graphitic nano- or microparticles as PAT/TAT contrast agents.