Unity, for example, supports 2D lightning and shadows. So, if i would add shadows to my game, even with 3 colors palette, there would be obviously more colors on the screen than 3 (see image).
Is it allowed to add shadows to my game?
nope, 3 color limit is part of the challenge...for unity u cud use a shader to limit the colors to 3