A group of people in the movie escape the society end it. One of the elements in the movie was lightning/electricity, which was the color yellow I believe. The color green meant safe, and the color red meant fire. This was one of my favorite shows when I was younger and it was the 2010-2016 time frame.
Quote from the above Wikipedia page:
“The children are divided into groups: Green, Blue, Yellow, Red, and Orange. Ruby Daly is an Orange which means she has the psionic ability to get into people’s mind. Kids that are Red and Orange are supposed to be killed instantly, but she touches the doctor who is classifying her and puts the thought in his head that she is a Green.”