There's apps that can simulate color blindness, which can be used for testing purposes.
This is such an app for iOS / macOS: https://michelf.ca/projects/sim-daltonism/