Is there a way to identify colours in a mesh
Sure thing.
Just use the black and white image as a mask for transparency.

Connect your material nodes like this.
And use the Transparent BSDF node.


If you're using Evee, don't forget to enable Alpha Blend 


You can also combine different colors the same way.
All of these planes were created using the same bw image.