Background color


Standard background colors

Background color 100

Background color 200

Active color 100

Active color 300

Primary color 200

Inverse background colors

Background color dark 100

Background color dark 200

Background color dark 300

Background color dark 400

Disabled background colors

Disabled color 200

Disabled color 300

Status and state background colors








These background color utilities can be used to modify the background color of an element. In most cases, using the components with available modifiers should be sufficient to implement most designs, and should be preferred over customizations using these utilities.

Care should be taken especially when applying background colors, as this can have a negative effect on the readability and accessibility of text. Refer to contrast ratios for more information.

Note that "inverse" background colors are labeled as such to indicate that they are best used with the "inverse" text colors.

Breakpoint is optional. Breakpoints: base (no breakpoint value), -on-sm, -on-md, -on-lg, and -on-xl. Example .pf-v5-u-background-color-200-on-lg


Applied to
.pf-v5-u-background-color-{100, 200}{-on-[breakpoint]}
Applies background color 100 or 200.
.pf-v5-u-background-color-active-color-{100, 300}{-on-[breakpoint]}
Applies background color active 100 or 300.
Applies background color primary 200.
.pf-v5-u-background-color-dark-{100, 200, 300, 400}{-on-[breakpoint]}
Applies background color dark 100, 200, 300, or 400.
.pf-v5-u-background-color-disabled-color-{200, 300}{-on-[breakpoint]}
Applies background color disabled 200 or 300.
Applies the background color for the default state.
Applies the background color for the success state.
Applies the background color for the info state.
Applies the background color for the warning state.
Applies the background color for the danger state.

View source on GitHub