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.
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.