Described herein are compounds comprising an oligopeptide and a non-steroidal antiinflammatory agent. The compounds self-assemble into supramolecular hydrogels and can be used as topical treatments for inflammatory conditions, such as osteoarthritis. Also described herein are oligopeptides compounds made from D-amino acid residues that form supramolecular hydrogels. The compounds may be functionalized with active agents, such as anticancer therapeutic agents, antiinflammatory agents, or imaging agents, therefore providing new mechanisms for delivery of active agents.