Why not just using CSS's filter
property to manipulate the color on :hover
or whatever other state? I found it works over SVG images into img
tags. At least, it's almost fully supported in 2020. It seams to me the simpliest solution. The only caveat is having to tweak the filter properties in order to find the target color. But you have also this very useful tool.