You can invert using an SVG Filter:
<feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1
0 -1 0 0 1
0 0 -1 0 1
0 0 0 1 0"/>
For more detail see the docs on feColorMatrix at MDN