Color Alone, Color Contrast, Color Conflicts

Non-text contrast

UI components and graphical objects that are needed to communicate information or functionality have a contrast ratio of at least 3:1

Non-text contrast clarifications

So when do I check for contrast?

Let's look at examples for Non-text Contrast