This exercise describes background and foreground color as “design aspects”. From a design perspective, how do we know which colors look good together?
This tool can be used to create color palettes that work well together. For improved accessibility, be sure that your background and foreground colors pass a contrast check.
For a more in depth examination of color theory, I recommend “The Non-Designer’s Design Book”.