Most mammals have protanopia, so it is not the red color of the cape that attracts the bull's attention.
Many insects cannot see red but can perceive ultraviolet.
So dogs can see yellow and blue, but no green or red or colors created by these shades, such as pink, orange or purple.