Background color


Standard background colors

Disabled background color

Inverse background color

Highlight background color



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-v6-u-background-color-disabled-on-lg


Applied to
.pf-v6-u-background-color-{disabled, inverse, highlight}{-on-[breakpoint]}
Applies background color

View source on GitHub