Toggle between two colors in a common-cathode RGB LED using a SPST switch
If you switch high side you can use a P-MOSFET as shown below.







simulate this circuit &ndash; Schematic created using CircuitLab

As others have mentioned, a simpler solution is simply to mix the colours.







simulate this circuit