Background · Bootstrap v5.0 | bootstrap background color
BackgroundcolorSimilartothecontextualtextcolorclasses,setthebackgroundofanelementtoanycontextualclass.Backgroundutilitiesdonotsetcolor,soinsomecasesyou’llwanttouse.text-*colorutilities[1]..bg-primary.bg-secondary.bg-success.bg-danger.bg-warning.bg-info.bg-light.bg-dark.bg-body.bg-white.bg-transparent