Below is sample code that illustrates how to define the color for each group when creating a bar chart with PROC SGPLOT in SAS 9.4. Note that in this example, the DATACOLORS parameter is used to define the fill color for each group.

proc sgplot data=sashelp.class;
styleattrs datacolors=(pink cyan);
vbar age/group=sex;
run;