There are some common colors. such as red,blue, etc.
panel.setBackground(Color.YELLOW);
but if you want to set your own colors you must create a object with your colors,
public static final Color myColor = new Color(55,265,44);
then set it,
panel.setBackground(myColor);