>>2136580Not the original Anon, but I know how I would do it.
Using the FX > Color Overlay tool in Photoshop, it's fairly simple - simply use the magic want tool to select the background, invert the selection, layer via copy, and apply an overlay with the selected color to the new layer.
Pic related, it's your picture set to #5ef1f6 using this technique.