How to add background color between black lines with svg files?

I have a svg image that contains multiples path and i want to add a background color inside my image.

I want my background color only between my black lines.

Do you know some tools please ?

For the moment, i think i will merge paths and create a polygon. But i think is not a good solution.