How to target specific colors in a Color Mask?

I have this mask that I created and I’m trying to target each color individually so I can make textures for those pieces. I figured out how to do the Red, Green, and Blue portions. But I cannot for the life of me figure out how to target the Yellow, Megenta, or Cyan colors individually.

Here is my mask and my blueprint so far.


This is a bad way of doing things. A single channel in an RGB texture contains 256 possible values (expressed in a 0-1 range in unreal). All of your colors could easily fit in just one channel of your image alone (think dark red vs light red).
A single bitmask node can then test if the pixel value matches the specified value. This will free up your other two channels for other things (like a roughness map for example).

What you’re trying to do is possible but it’s a waste of shader instructions and time vs a grayscale mask.