Color

Color, in a design system, is more than just a palette of hues. It's a structured, standardized, and purposeful set of color variables that ensures visual consistency across an entire product or brand. Rather than using arbitrary hex codes, a design system defines a limited set of colors with clear names and functions

Color is fundamental to conveying clarity in communication by creating visual patterns that show how things function and make interacting with Docplanner predictable and straightforward.
Maintaining consistent and engaging digital interfaces throughout Docplanner demands extended guidance around color usage. Watson should provide the foundation as we look forward to achieving balance, harmony, and accessible combinations through our user interface design. By defining a color system we can ensure we have a controlled (and consolidated) palette of acceptable colors, consistent and proper usage, and also improve ease of maintenance.


Semantic values

Our palette suggests meaning and usage for each of the colors in our system. For example, from a semantic perspective, the color green is used to reinforce a positive sentiment. The naming structure of our semantic palette reflects the pieces of semantic information to help you understand the purpose and usage of any color:
--w-color-{role}-{sentiment}-{emphasis}-{state}

Role

The role defines where the color is gonna be used. We have three values: foreground, background, and border.

Sentiment

Sentiment refers to the feeling of what is being conveyed with a specific color. We have four values: accent, success, warning, and danger. Neutrals in the grayscale do not have a sentiment.

Emphasis

Emphasis refers to how prominent the color appears in our interfaces. We have: primary, secondary, tertiary, highlight, muted, and inverted.

State

States depict the different conditions of a component related to its interaction. Therefore, we have hover and active values.

 

Further reading:


Foreground

Foreground colors are used in text and icons.

Foreground
#242727
Primary
#565f5f
Secondary
#888f8f
Muted
#f7f8f8
Inverted
#006a59
Accent
#f2fcf8
Accent-inverted
#1b5ea9
Info
#f8fafe
Info-inverted
#176d00
Success
#f8fbf5
Success-inverted
#865200
Warning
#ae2f25
Danger
#fefaf8
Danger-inverted

Background

Background colors apply to the surfaces of components or pages.

Background
#f7f8f8
Primary
#ffffff
Raised
#f3f5f5
Inset
rgba(232,234,234,0.6)
Hover
rgba(216,218,218,0.6)
Active
#e8eaea
Neutral
#d8dada
Placeholder
#888f8f
Highlight
rgba(36,39,39,0.5)
Backdrop
#3d4343
Inverted
#4a5151
Inverted-hover
#565f5f
Inverted-active
#dff9f2
Accent
#c1f5e7
Accent-hover
#8febd5
Accent-active
#007c68
Accent-inverted
#006a59
Accent-inverted-hover
#025b4c
Accent-inverted-active
#3d4343
Form-accent
#e2e9ff
Info
#cbd9ff
Info-hover
#8eb2fd
Info-active
#256ec3
Info-inverted
#dbf0ce
Success
#bde5a7
Success-hover
#76c651
Success-active
#1c7f00
Success-inverted
#fff6ba
Warning
#ffec73
Warning-hover
#ffd625
Warning-active
#ffd625
Warning-inverted
#ffe5de
Danger
#ffcfc3
Danger-hover
#ff9681
Danger-active
#c9392d
Danger-inverted
#ae2f25
Danger-inverted-hover
#96281f
Danger-inverted-active

Border

Borders group or separate content. They’re used primarily on tables, lists, or cards.

Border
#d8dada
Primary
#afb4b4
Primary-hover
#e8eaea
Secondary
#888f8f
Highlight
#00a085
Accent
#888f8f
Form-accent
#4e8de9
Info
#38a203
Success
#e2aa00
Warning
#f35a47
Danger

Usage

The following examples provide some guidance as we seek to achieve color balance and harmony through our user interface design.

Pairing Tokens

Understanding how our colors can be combined or interact together is the best way to accomplish that.

success-combination-sample

Pairing foregrounds with their background counterparts, for instance, will help you maintain the necessary contrast regardless of the color sentiments.

inverted-combination-sample

Using the -inverted versions of our semantic colors can assist you to highlight the most important item of a view or an interface.

background-combination-sample

Use primary, raised, and inset backgrounds to differentiate surfaces in your interfaces. For example, to create focal points or depth.

text-foreground-sample


Use neutral foregrounds to reinforce the hierarchy of the components.

border-combination-sample


Use the primary border to frame your content and the secondary as dividers or to suggest separation among components (e.g.: table rows or lists).

design-resources-figma-sample

Combining yellow

Semantic colors are built around the concept of consistent luminance and contrast, but following them and establishing a common rule does not work for yellow. This color by definition needs to stay light to keep its meaning and that’s why we break the rule by providing a one-off solution for the yellow shades.

yellow-combination-sample


The yellow version does not use a “foreground-warning-inverted” as it wouldn’t reach a similar contrast ratio as the rest of the sentiments. To achieve that ratio, we use “foreground-warning” and its background employs a lighter shade of yellow to avoid browns.


Color tagging

We provide a separate color palette for the purpose of color tagging elements, such as calendars and services. Palette consists of 14 colors with distinct hues.

Foreground

Foreground colors are used for texts and icons.

color tagging / foreground

Background

Background colors are used for surfaces and for representation of the selected color i.e. in a color picker.

color tagging / background

Usage

Pairing

Pair foreground and background colors with their respective counterparts to achieve best contrast and color combinations.
Pairing foregrounds with their background counterparts, will help you maintain the necessary contrast regardless of the color sentiments.

Representing the color

Ensure the component using the tagging system represents the user's chosen color clearly. Use this color as a background directly, or add an extra visual element to create a connection.
Calendar event uses --w-background-inverted in the dark theme, and visual bar with --w-background-inverted in the light theme to connect elements with the picked color.

Design resources

All semantic colors are available as part of the Watson Web library in Figma. You will find them as variables, categorized by role, and named after their semantic token.

All color variables are available in the right-side panel

All color variables are available in the right-side panel

When pairing colors refer to the examples of usage, and in doubt, use Stark’s contrast checker to confirm that your pairing is contrasted enough and accessible. This plugin is installed by default in Docplanner’s organization.

Find it in the Figma Plugins menu > Stark > Contrast Checker.

Find it in the Figma Plugins menu > Stark > Contrast Checker.