The blue light means the device is active and you are neither accelerating too hard nor braking too hard. The car is operating in an optimal fashion. The purple light means that your braking or accelerating exceeds the threshold for efficient or safe driving by a small amount. The red light means that your acceleration or braking exceeds the threshold for efficient or safe driving significantly.
Check out Danny's video explanation.