If you are concerned about the selection order of these balls (i.e: you could select the red ones first green ones second and purple ones third or you can select purple ones first then red ones and green ones etc....)
then you have to multiply the answer by 3!(three factorial.) Otherwise to my mind your solution is correct.
Hope this will help you.