Color Accessibility

The spark color system was created with accessibility as a core practice.
When defining a new or novel color combination, especially text, this must be done with accessibility in mind.

Contrast


We should always aim to follow WCAG guidelines in terms of contrast between foreground colors and background colors.

Always use desired foreground/background color pairings.

 

Text Contrast

We should always aim for a 4.5:1 contrast ratio between text and background.

Text contrast ratio against any background should always be 4.5:1 or higher.

Text contrast ratio against any background should always be 4.5:1 or higher.

 

Graphic assets contrast

We should always aim for a 3:1 contrast ratio between graphical assets and background.

We classify a graphical asset as:

Graphical assets' contrast ratio agaisnt any background should always be 3.1:1 or higher.

Graphical assets' contrast ratio agaisnt any background should always be 3.1:1 or higher.

 

Checking contrast on Figma

While using Spark colors correctly will mitigate contrast issues almost completely we highly recommend using Figma’s own contrast tool to check if a pair of colors passes the contrast check.

 

Focus outline color


Focus is an essential part of accessibility, for all focus outlines we should always use border/focus .

Focus outlines are an essential part of navigation and accessibility.

Focus outlines are an essential part of navigation and accessibility.

Learn more about border colors below.

 

Read more about Accessibility