When you create a custom html module, you have lots of variations, to set quickly design your website. There are several module classes you can use and you can combine them as well!
bg-primary sets the background to the primary color
bg-secondary sets the background to the secondary color
you can add the following options as well:
you can add these in the module-class field for your modules. you can find this field under the advanced tab.