Actually, the colors probably ARE aligned with the panels.
It appears you are using fieldsets here. Browsers normally render fieldsets with a border and some padding around them, so if you add a background color to a fieldset, or to a panel containing a fieldset, this is what will happen.
Best way to handle this would be to style your fieldsets with CSS to get rid of their borders, which is what is giving the appearance of a misalignment.