Applying color to UI
Color is applied to UI elements and components in consistent and meaningful ways.
Usage
These guidelines describe a variety of UI components and elements where color application is important.
Principles

Consistent
Color should be applied throughout a UI consistently and be compatible with the brand it represents.

Distinct
Color should create distinction between elements, with sufficient contrast between them.

Intentional
Color should be applied purposefully as it can convey meaning in multiple ways, such as relationships between elements and degrees of hierarchy.
Top and bottom app bars
The way color is applied to top and bottom app bars helps users identify them and understand their relationship to surrounding elements.
The top app bar displays information and actions relating to the current screen.
Related article
Bottom app barsA bottom app bar displays navigation and key actions at the bottom of mobile screens.
Related article
ReplyReply is an email app that uses Material Design components and Material Theming to create an on-brand communication experience.
Related article
Identifying app bars
Top and bottom app bars use an app’s primary color. System bars can use a dark or light variant of the primary color to separate system content from top app bar content.

Do
To emphasize the difference between app bars and other surfaces, use a secondary color on nearby components such as the floating action button (FAB).

Do

Caution
Blending an app bar with the background
When an app’s top or bottom app bar color is the same color as the background color, they blend together, placing emphasis on an app’s content instead of its structure.

Fortnightly is a news app that uses Material Design components and Material Theming to create an on-brand, content-focused experience.
Related article
OwlOwl is an educational app that uses Material Design components and Material Theming to create an energetic, motivational brand experience.
Related article
Backdrop
The backdrop has a front and back layer. To distinguish between these two layers, the baseline back layer color is your primary color and the baseline front layer is white.


A backdrop appears behind all other surfaces in an app, displaying contextual and actionable content.
Related article
CraneCrane is a travel app that uses Material Design components and Material Theming to create a personalized, on-brand experience.
Related article
ShrineShrine is a retail app that uses Material Design components and Material Theming to express branding for a variety of fashion and lifestyle items.
Related article
Sheets and surfaces
The baseline color for sheets and surfaces, such as bottom sheets, navigation drawers, menus, dialogs, and cards is white. These components can incorporate color to create contrast between other surfaces. Contrast can make surface edges apparent, indicating elevation differences when surfaces overlap.

1. This product uses a primary color (purple 500) in part of the bottom sheet instead of the baseline white.
2. This product’s navigation drawer uses its primary color (purple 500) instead of the baseline white.
Bottom sheets are surfaces containing supplementary content that are anchored to the bottom of the screen.
Related article
Side sheetsSide sheets are surfaces containing supplementary content that are anchored to the left or right edge of the screen.
Related article
MenusMenus display a list of choices on temporary surfaces.
Related article
Modal sheets
Use contrasting colors on surfaces that appear on-screen temporarily, such as navigation drawers and bottom sheets. Usually these surfaces are white, but you can use your app’s primary or secondary color.


Reply is an email app that uses Material Design components and Material Theming to create an on-brand communication experience.
Related article
Navigation drawerNavigation drawers provide access to destinations in your app.
Related article
FortnightlyFortnightly is a news app that uses Material Design components and Material Theming to create an on-brand, content-focused experience.
Related article
Cards
The baseline color for cards is white. This color can be customized to express brand or improve legibility. Card text and icons can also use the color theme to improve legibility.

When a card’s text and icons appear in front of imagery, they can be difficult to read. To improve legibility, you can use color to create a surface for text and icons.

Buttons, chips and selection controls
Buttons, chips and selection controls can be emphasized by applying your primary or secondary color to them.
Color categories
- The baseline color for contained, text and outlined buttons is your primary color.
- The baseline color for floating action buttons and extended floating action buttons is your secondary color.
- The baseline color for selection controls is your secondary color.

1. This product uses the primary color (purple 500) for the bottom app bar and the secondary color (teal 200) as an accent for the floating action button and selection controls.
2. This product uses the secondary color (teal 200) as an accent for selected list items.
Buttons, chips, and selection controls
Buttons, chips, and selection controls can be emphasized with your primary or secondary colors.


Do

Don't
Buttons allow users to take actions, and make choices, with a single tap.
Related article
ChipsChips are compact elements that represent an input, attribute, or action.
Related article
Selection controlsSelection controls allow the user to select options.
Related article
OwlOwl is an educational app that uses Material Design components and Material Theming to create an energetic, motivational brand experience.
Related article
CraneCrane is a travel app that uses Material Design components and Material Theming to create a personalized, on-brand experience.
Related article
ShrineShrine is a retail app that uses Material Design components and Material Theming to express branding for a variety of fashion and lifestyle items.
Related article
Floating action button (FAB)
The floating action button (FAB) should be one of the most recognizable items on your screen.
Use color to create contrast between the FAB and surrounding elements, such as the app bar. Your secondary color is the baseline color for use on the FAB. If your canvas uses many colors, your FAB can use monochromatic coloring instead, to stand out from the content.


A floating action button (FAB) represents the primary action of a screen.
Related article
ReplyReply is an email app that uses Material Design components and Material Theming to create an on-brand communication experience.
Related article
Typography and iconography
Color can express whether text has greater, or lesser, importance relative to other text. Color also ensures text remains legible when placed above imagery or backgrounds, which can make it difficult to read the text in front of them.
Typographic hierarchy
Color can increase both text’s visibility and its level of importance.

Headlines and tabs
Important text, like tabs and headlines, can use your primary or secondary color.



Do

Do

Caution
Tabs organize content across different screens, data sets, and other interactions.
Related article
BasilBasil is a recipe app that uses Material Design components and Material Theming to create an on-brand experience that is exciting and easy to explore.
Related article
OwlOwl is an educational app that uses Material Design components and Material Theming to create an energetic, motivational brand experience.
Related article
Text legibility
When text is placed above imagery, it often leads to legibility issues. Creating a colored layer between text and image can ensure text remains legible.

Icons
Icons help identify actions and provide information. Their color should contrast against the background to ensure that they are legible and identifiable.


Basil is a recipe app that uses Material Design components and Material Theming to create an on-brand experience that is exciting and easy to explore.
Related article
ShrineShrine is a retail app that uses Material Design components and Material Theming to express branding for a variety of fashion and lifestyle items.
Related article