Always ensure that people who can’t perceive colour or see it in a different way can still understand the information.
If you need to use colour to convey information make sure that colour-blind safe colours are used. Use a colour-blind simulator, such as Vischeck, to test your colours to see whether they are colour-blind safe.
Colour palettes should be chosen to maximise the difference in perception between the colours and also appear distinct to people with varying types of colour blindness.
A good starting point is to choose colours that are distinct from the background and each other.