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

Solved92 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.
Selected answer as best