I'm not great at ffmpeg, but here's my best!
(export Y="y=(ih/6)" BOX="drawbox=w=iw:h=(ih/6):t=fill:c=" O="45" && ffmpeg -i in.mp4 -filter_complex "[0:v]$BOX#e40303$O,$BOX#ff8c00$O:$Y,$BOX#ffed00$O:$Y*2,$BOX#008026$O:$Y*3,$BOX#24408e$O:$Y*4,$BOX#732982$O:$Y*5[m];" -map "[m]" -map "0:a" out.mp4)