For a ratio make a fraction using the quantities of the colors.
You want the ratio of red to purple.
There are 16 red and 2 purple, so the ratio would be 16/2, which can be reduced to 8/1