Color

BETA
Use colors to express emotions, reflect your brand identity, and create visual continuity across components and products.

Usage Guidelines

The application of color is a vital part of every digital product and interface. When used in a meaningful and consistent way, color reinforces the content hierarchy and keeps the cognitive load low.

This article describes several basic principles that will allow you to improve the user experience.

Emphasizing Primary Actions

Color, as one of the most powerful tools, allows you to draw the user's attention and increase usability. The use of accent or primary color serves to emphasize the main call to action.

Use color to emphasize primary actions.
Avoid using secondary colors on primary action buttons.

Providing Sufficient Contrast

Contrast is the difference in lightness between two color values. Provide sufficient contrast to improve readability and to ensure that meaning is not lost for color-blind users. According to WCAG AA contrast minimums, the contrast ratio between the text and the background layer colors must be:

  • At least 4.5:1 for normal text (less than 18 pts; less than 14 pts bold).
  • At least 3:1 for large text (more than 18 pts; more than 14 pts bold).
For text, icons, illustrations, and backgrounds use color tones that provide sufficient contrast.
For text, icons, illustrations, and backgrounds, avoid using color tones that do not provide sufficient contrast.

Conveying Meaning

Color can never be the only way to identify statuses or convey meaning. Some color-blind people, for example, cannot tell the difference between certain color combinations. Along with color, always utilize additional means of identification, such as visible text, underlines, borders for visible focus styles, and icons that correspond to the content.

Use semantic colors accompanied by text and icons to convey meaning more effectively.
Avoid using colors as the only way to convey information.