Movie about society getting divided by color/element they are assigned through a test

Solved418 views#1 Moviescolor dystopia dystopian element elemental
0

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.

Question is closed for new answers.
tristandecious Selected answer as best Jul 20, 2021
1

Or “The Darkest Minds” (2018)?
https://www.imdb.com/title/tt4073790/
Detailed plot on Wikipedia here:
https://en.wikipedia.org/wiki/The_Darkest_Minds

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

tristandecious Selected answer as best Jul 20, 2021