There are a LOT of uses for prismatic shards, some of the general ones are:
-Selling
-Gifting (universally loved except for haley)
-Using as a showpiece
-Donating to the museum
-For dyeing (counts as any colour)
More specific uses are:
-Trading for magic rock candy from the desert trader on thursdays
-Enchanting tools and weapons
-Used to tailor something like 4 outfits at a sewing machine
-Used to sacrifice children, turning them into doves
-Put in a junimo hut to make your junimos rainbow
-For the galaxy sword as you've done already
-Wedding ring if in multiplayer
-The missing bundle unlocking the theater post cc
-For a qi quest
Those are just off the top of my head, it's a super versatile item and probably has more uses