Color is an integral aspect of conveying clear concise data. Our colors are optimized across four backgrounds, meeting or exceeding WCAG 2.0 Level AA Accessibility Guidelines.
Our neutrals have been streamlined for on-screen use. They are organized by lightness value from Black (0) to White (100).
Feedback colors reinforce a user action and are used in Forms, Alerts, and Notifications. Color alone is not sufficient to meet WCAG 2.0 Level AA Accessibility Guidelines. An additional affordance, such as an Icon, must be included.
$mds-text-color-primary-on-light
when using the background variant.$mds-text-color-primary-on-light
when using the background variant.$mds-text-color-primary-on-light
when using the background variant.Background colors work in pairs to establish visual hierarchy.
Primary backgrounds always contain the product’s focal point. The user is doing most of their work on this background.
Secondary backgrounds offer visual rest from primary backgrounds. They often contain auxiliary elements such as side navigation, card backgrounds, registration forms, or ad-unit containers.
The MDS site uses $mds-background-color-light-gray
for the navigation on the left. The site’s content is contained in $mds-background-color-white
.
Use to establish interactivity and hierarchy between UI components (i.e., mds-button--primary
versus mds-button
).
$mds-text-color-primary-on-dark
when used as a background color.$mds-interactive-color-primary-default
for text, as this creates an optical imbalance with interactive objects.Text on any background color must have a minimum foreground-to-background contrast ratio of 4.5:1. This ensures compliance with WCAG 2.0 Level AA Accessibility Guidelines.
Brand logos and disabled text do not have a minimum contrast ratio. All other content, including placeholder text, must meet or exceed 4.5:1.
Use for fundamental text, such as body copy, Data Table cell data, and List Group items.
Use for supportive text, such as placeholder text in Forms, Data Table column headers, and metadata.
In this example, $mds-text-color-secondary-on-light
is used for text box placeholder text in Forms, as well as for the readout of disclosure information in small type (metadata).
Use to highlight errors.
Use to show positive, neutral, or negative performance in text.
$mds-font-weight-bold
as the font weight for text using performance colors.Use mixins to apply the text colors listed above across background color containers.
Text Color | Mixin |
---|---|
Primary |
|
Secondary |
|
Links |
|
Errors |
|
For example:
[.my-product-class] {
@include mds-text-color-secondary();
}
will result in the following CSS:
.mds-container--white [.my-product-class],
.mds-container--light [.my-product-class] {
color: #5e5e5e;
}
.mds-container--dark [.my-product-class],
.mds-container--black [.my-product-class] {
color: #ababab;
}
We assign specific meanings and orders to colors to create clarity and consistency across widely-used data visualizations.
Use to tie data to asset classes.
$mds-visualization-color-asset-allocation-alternative
, Corporate Bonds and Government Bonds would use $mds-visualization-color-asset-allocation-fixed-income
.Use to show positive or negative correlation within a Correlation Matrix.
Use to represent data relating to Morningstar Super Sectors.
Use to represent data related to the Morningstar Sustainability Rating.
Use to represent under, fair, or over valuation.
Use to show positive, neutral, or negative performance in visualizations.
Use when there are no specific color meanings associated with a visualization.
$mds-chart-color-1
and ascending in order to $mds-chart-color-15
. If there are more than 15 items, begin again with $mds-chart-color-1
.$mds-chart-color-10
through $mds-chart-color-15
are intended for use only within the context of the full chart color order and therefore do not have documented generic constants.Use when creating visualizations that use chart colors in ways outside of those defined by existing color meanings or orders.
Borders define and structure content.
Color contrast refers to the difference between foreground and background. The World Wide Web Consortium established specific color-contrast ratios for achieving compliance. The guidelines are split into three levels: A, AA, and AAA. The organizational benchmark for Morningstar products is Level AA.
The color decisions shared here reflect an adherence to a contrast ratio of at least 4.5:1. When possible, we recommend a ratio near 5.5:1, just to be safe. Never use any combinations that do not meet Level AA Guidelines.
Rating |
Description |
---|---|
AAA
|
Passes Level AAA Guidelines at all sizes. Minimum contrast ratio ≥7.0:1. |
AA
|
Passes Level AA Guidelines at all sizes. Minimum contrast ratio ≥4.5:1. |
AA18
|
Passes Level AA Guidelines only at ≥18px text or ≥14px bold text. Minimum contrast ratio ≥3.0:1. |
DNP
|
Does not pass Level AA Guidelines. Do not use. |
The table above is reproduced from W3C’s Web Content Accessibility Guidelines 2.0.
Subtlety and refinement are integral to our visual language, however, ensuring that our content is legible takes precedent. The successes and failures below guided System color decisions.