Colors

PatternFly colors

This guide outlines the PatternFly color palette, as well as guidance for color use in different scenarios. Note that the color swatches and palettes automatically change to accommodate light or dark themes. To learn more about PatternFly’s dark theme, refer to our dark theme handbook.

In this guide, you can select each color swatch to learn more details, such as hex values and usage guidance.

Refer to our developer resources to see a list of all global CSS color variables.

Primary colors

Primary colors are those displayed most frequently across your application screens and components. Our primary color is called "PatternFly blue", which is used across PatternFly's components. PatternFly blue should change upon hover.

--pf-v6-global--primary-color--100
--pf-v6-global--primary-color--200
PatternFly blue colors

Typography and iconography colors

Text and icon colors are extremely similar because they can often be used in the same context, such as for a link button. We support multiple shades of text colors so that you can emphasize hierarchy on both light and dark backgrounds.

--pf-v6-global--Color--100
--pf-v6-global--Color--200
--pf-v6-global--link--Color
PatternFly typography colors

Background colors

Background colors are used throughout components and, occasionally, for certain screens. Light colors can be used interchangeably with full-screen backgrounds, while dark colors are strictly used as backgrounds within components.

Light backgrounds

--pf-v6-global--BackgroundColor--200
--pf-v6-global--BackgroundColor--100

Dark backgrounds

--pf-v6-global--BackgroundColor--dark-100
--pf-v6-global--BackgroundColor--dark-200
--pf-v6-global--BackgroundColor--dark-300
--pf-v6-global--BackgroundColor--dark-400
PatternFly background colors

Status and state colors

Status and state colors are indicators that communicate data and actions to users through the UI. PatternFly's status colors cover default, danger, success, information, and warning statuses, as well as disabled states.
PatternFly status colors

Default

--pf-v6-global--default-color--300
--pf-v6-global--default-color--200
--pf-v6-global--palette--cyan-50

Danger

--pf-v6-global--danger-color--200
--pf-v6-global--danger-color--100
--pf-v6-global--palette--red-50

Success

--pf-v6-global--success-color--200
--pf-v6-global--success-color--100
--pf-v6-global--palette--green-50

Info

--pf-v6-global--info-color--200
--pf-v6-global--info-color--100
--pf-v6-global--palette--blue-50

Warning

--pf-v6-global--warning-color--200
--pf-v6-global--warning-color--100
--pf-v6-global--palette--gold-50

Disabled

--pf-v6-global--disabled-color--100
--pf-v6-global--disabled-color--200
--pf-v6-global--disabled-color--300

Shadows

Shadows can be used to create contrast between UI elements. PatternFly supports different shadow sizes, which enable you to increase the visual depth of a UI element and distinguish it from other elements on the screen.

--pf-v6-global--BoxShadow--lg
--pf-v6-global--BoxShadow--md
--pf-v6-global--BoxShadow--sm
PatternFly shadows

Contrast ratios

PatternFly's goal is to meet level AA in the Web Content Accessibility Guidelines 2.1. To meet level AA requirements, your UI contrast ratios must be at or above 4.5:1 for normal text, 3:1 for large text, and 3:1 for graphics and other UI components. Additionally, on hover, link text color should have ample contrast from both the background color and the default state link color.

To check the contrast between background and text colors, use a WCAG AA-compliance tool.


PatternFly palettes

Our color palettes are created as a system, designed to reinforce content and workflows. Our palettes are carefully chosen to support effective communication and adapt to the needs of your UI.

Note that bright colors are used sparingly and are reserved for specific interactions, such as communicating status.

Our color palettes are organized into "families" that contain different shades of the same hue. In the following palettes, you can expand each value color or shadow in a family to see more details.

Gray family

--pf-v6-global--palette--white
#FFFFFF

Blue family

Shadows

--pf-v6-global--BoxShadow--sm
--pf-v6-global--BoxShadow--md
--pf-v6-global--BoxShadow--lg

Green family

Cyan family

Purple family

Light blue family

Gold family

Light green family

Orange family

Red family


View source on GitHub