You're probably thinking of Tetris.
While the original Game Boy version used monochrome/green shades, virtually every modern version (Tetris Effect, Tetris 99, Tetris.com, mobile ports) and countless pop-culture depictions feature the classic purple (T), green (S), red (Z) tetromino color scheme.
If that's not it, describe the gameplay: falling blocks? matching? puzzle? platformer?