Out of curiosity, what colors (or text treatments) do you personally prefer to confer "gain" and "loss"?
If you turn on the color filters in accessibility settings in macOS you can see what the contrast could look like to a colorblind person.
Ask a colorblind person to explain how to win at candy crush and you'll be surprised (hint: we do not use colors, we use the shapes).
The general trick is you can rely on differences in color lightness, patterns, text and icons, but not differences in color hue. The page should be usable in grayscale.