Although it is possible to change the background color in yEd (see "File" -> "Preferences", tab "Background"), it is not possible to use multiple different background colors at once.
Have you tried putting your diagram parts into group nodes and coloring those group nodes (similar to what "Grouping" -> "Auto Grouping" does)?