PatternFly's palette
Our color palettes align with Red Hat's brand colors and are designed to reinforce content and support effective communication across different UI needs. Colors are applied to PatternFly elements using semantic design tokens. This guide offers guidance for color use in some of the most common scenarios, but it does not cover all tokens. Additional color usage information is included in our tokens documentation.
Each example contains a descriptive label, a semantic token, and a color swatch circle. If you select a color swatch circle, you can see more details, including a hex code and usage information. Color swatches will automatically update to match light or dark theme colors, based on your browser settings.
Brand colors
Brand colors are used to identify your brand, and are the colors most frequently used across your UI. Our brand color, "PatternFly blue", is used across all components. There are different brand tokens depending on the use case, like icon tokens, text tokens, global color tokens, and so on.
--pf-t--global--color--brand--default
--pf-t--global--color--brand--hover
--pf-t--global--text--color--brand--default
![PatternFly blue colors](/images/brand-colors.a81f1a3514c6756e.png)
Background colors
Background colors are used throughout components and, occasionally, for certain screens.
--pf-t--global--background--color--primary--default
--pf-t--global--background--color--primary--hover
--pf-t--global--background--color--secondary--default
--pf-t--global--background--color--secondary--hover
![PatternFly background colors](/images/background-colors.29010d29f25dff71.png)
Text and icon colors
Text and icon colors overlap, because they can be used inline with each other. Note that there are different tokens for standalone icons, inline icons, and standalone text. For more details view our icons and typography guidelines.
Text and icons can also display status information, which is covered in the status and state colors section.
--pf-t--global--text--color--regular
--pf-t--global--text--color--subtle
--pf-t--global--icon--color--regular
--pf-t--global--text--color--link--default
![PatternFly text and icon colors](/images/text-icon-colors.472260dea9c06e97.png)
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.
Danger
--pf-t--global--icon--color--status--danger--default
--pf-t--global--text--color--status--danger--default
--pf-t--global--color--status--danger--hover
![PatternFly danger colors](/images/danger-colors.8069f2e1a97584d4.png)
Warning
--pf-t--global--icon--color--status--warning--default
--pf-t--global--text--color--status--warning--default
--pf-t--global--color--status--warning--hover
![PatternFly warning colors](/images/warning-colors.ce5003e948b6c1e5.png)
Disabled
--pf-t--global--icon--color--disabled
--pf-t--global--text--color--disabled
--pf-t--global--background--color--disabled--default
![PatternFly disabled colors](/images/disabled-colors.0fc0e9f65daa6fdf.png)
Nonstatus colors
--pf-t--global--border--color--nonstatus--teal--default
--pf-t--global--color--nonstatus--purple--default
--pf-t--global--color--nonstatus--green--hover
![PatternFly nonstatus colors](/images/nonstatus-colors.a7735de7c4593816.png)
Contrast ratios
Our goal is for PatternFly to meet level AA requirements in the Web Content Accessibility Guidelines 2.1. To achieve level AA accessibility, 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.