Here's a slightly different way of doing it - changing the order of the colors in the pattern statements, to match the alphabetical order of the colors (or whatever variable you're using for the slices).
goptions xpixels=500 ypixels=500; goptions htitle=14pt htext=11pt ftext='albany amt/bold';
Data mydata; Input Color $ Quantity; Datalines; Red 10 Yellow 40 Green 50 ; run;
title1'colors of my pie'; pattern1 color=green; pattern2 color=red; pattern3 color=yellow;
title1 'My pie'; proc gchart data=mydata; pie color/ type=sum sumvar=Quantity noheader slice=outside value=inside; run;
... View more