The Parsley Design System utilises a colour system based on defined brand colours and is a collection of carefully considered tokens designed to work in unison. The colour tokens have assigned roles which instill a semantic meaning based on how they are used within content and functionality.
There are three core modes within the Parsley Design System:
Light mode (default)
Dark mode
WCAG Level AAA
Each mode contains colour tokens for:
Brand colours - these tokens are available to use however must not be used in replace of a semantic token, for example don’t use brand-dark for links, instead use interactive-primary
Text content
Background surfaces
Interactive states
Selected states
Borders
Status colours
Utility colours
Data visualisation colours
Colour system rules
Use the default or primary colour tokens per colour set in the first instance, then consider the additional colour tokens within the colour set.
For text use the primary text colour by default, subdued is to be used on less important or optional text.
For interactivity the backup secondary and secondary-inverse are available to use when a background colour impacts the contrast requirements of text or non-text elements or focus states.
Use selected states that are clearly different to non-selected or inactive states and apply that consistency throughout.
Colour plays a key role in creating the overall hierarchy of a screen. Using the subdued text token or background layer tokens can help change the hierarchy of content.
Accessibility of the colour system
The colour system is applied throughout all colour tokens and consider accessibility contrast requirements. All default state text colours are compatible with default state background colours, additionally all inverse text colours are compatible with inverse background colours. This ensures consumers of the design system can use the defined colours confidently.
Dark mode
Dark mode focuses on light text on dark backgrounds. It provides a less saturated and intense interface experience for users. Dark mode can be easier to read both in dark and light settings.
Dark mode may lower or eliminate screen flickering, potentially increasing focus. Dark mode is intended to reduce blue light exposure and help with eye strain that comes with prolonged screen time. The reduction in blue light may reduce any squinting or strain associated with high amounts of brightness.
While many users prefer dark mode it can cause issues for users with myopia or astigmatism where halation causes light text on a dark background to appear foggy or blurry for these users.
Use the background tokens to help elevate content
Saturated colours from light mode are replaced with less saturated gray scale colours
The colour token operate in the same way as light mode in that the semantic colour sets meet contrast requirements for text and non-text colours on the background tokens.
Dark mode rules
Don’t use black as a background colour, the background tokens in dark mode are not solid black.
For data visualisation only use backgroundPrimary" and background-secondary. Background-tertiary doesn’t meet contrast requirements with the data visualisation colours.
To maximise readability and legibility use light text colours on the defined background tokens.
Avoid saturated colours, instead utilise desaturated colours and stick to gray scale colours where possible, this provides a more calming experience. The dark mode colour system contains gray scale colour swatches.
Ensure colour is not the only visual indicator to convey specific content or functionality.
Accessibility requirements considered for colour
Text on backgrounds are above the 4.5:1 contrast ratio
Non-text content and user interface controls on backgrounds are above the 3:1 ratio
Use of Colour where colour alone is used to identify visual meaning
Focus visible
Focus not obscured (minimum)
Focus not obscured (enhanced)
Focus appearance
Approach to colour
The approach to colour and how colour contributes to design follows a design hierarchy of priority whereby other elements are considered of higher importance before colour:
Position
Size
Shape
Contrast
Colour
Form
Light mode colour
Brand
Primary
Visual colour swatch for Primary
Token: brandPrimary
Colour code: #514285
Secondary
Visual colour swatch for Secondary
Token: brandSecondary
Colour code: #0b7d35
Tertiary
Visual colour swatch for Tertiary
Token: brandTertiary
Colour code: #3a2d32
Text
Text primary
Visual colour swatch for Text primary
Token: textPrimary
Colour code: #42363b
Text secondary
Visual colour swatch for Text secondary
Token: textSecondary
Colour code: #55494d
Text tertiary
Visual colour swatch for Text tertiary
Token: textTertiary
Colour code: #746a6e
Heading
Visual colour swatch for Heading
Token: textHeading
Colour code: #514285
Text primary inverse
Visual colour swatch for Text primary inverse
Token: textInverse
Colour code: #fff
Text secondary inverse
Visual colour swatch for Text secondary inverse
Token: textSecondaryInverse
Colour code: #c6c3c4
Text tertiary inverse
Visual colour swatch for Text tertiary inverse
Token: textTertiaryInverse
Colour code: #8f878a
Heading inverse
Visual colour swatch for Heading inverse
Token: textHeadingInverse
Colour code: #c6c2d7
Background
Primary
Visual colour swatch for Primary
Token: backgroundPrimary
Colour code: #fff
Secondary
Visual colour swatch for Secondary
Token: backgroundSecondary
Colour code: #f7f7f7
Tertiary
Visual colour swatch for Tertiary
Token: backgroundTertiary
Colour code: #f2f1f1
Fourth
Visual colour swatch for Fourth
Token: backgroundFourth
Colour code: #f1f0f5
Fifth
Visual colour swatch for Fifth
Token: backgroundFifth
Colour code: #dedbe8
Inverse Primary
Visual colour swatch for Inverse Primary
Token: backgroundPrimaryInverse
Colour code: #000
Inverse Secondary
Visual colour swatch for Inverse Secondary
Token: backgroundSecondaryInverse
Colour code: #3a2d32
Inverse Tertiary
Visual colour swatch for Inverse Tertiary
Token: backgroundTertiaryInverse
Colour code: #42363b
Modal
Visual colour swatch for Modal
Token: backgroundModal
Colour code: rgba(0, 0, 0, 0.6)
Loading
Visual colour swatch for Loading
Token: backgroundLoading
Colour code: #c6c2d7
Interactive
Interactive
Visual colour swatch for Interactive
Token: interactive
Colour code: #0b7d35
Interactive Secondary
Visual colour swatch for Interactive Secondary
Token: interactiveSecondary
Colour code: #42363b
Interactive Inverse
Visual colour swatch for Interactive Inverse
Token: interactiveInverse
Colour code: #fff
Interactive Secondary Inverse
Visual colour swatch for Interactive Secondary Inverse
Token: interactiveSecondaryInverse
Colour code: #6cf49e
Interactive background
Visual colour swatch for Interactive background
Token: interactiveBackground
Colour code: #0b7d35
Interactive background inverse
Visual colour swatch for Interactive background inverse
Token: interactiveBackgroundInverse
Colour code: #beffd6
Link default
Visual colour swatch for Link default
Token: linkDefault
Colour code: #0b7d35
Interactive hover
Visual colour swatch for Interactive hover
Token: linkHover
Colour code: #085926
Interactive active
Visual colour swatch for Interactive active
Token: linkActive
Colour code: #06421c
Interactive visited
Visual colour swatch for Interactive visited
Token: interactiveVisited
Colour code: #47367d
Selected
Selected
Visual colour swatch for Selected
Token: selected
Colour code: #8b008b
Selected Secondary
Visual colour swatch for Selected Secondary
Token: selectedSecondary
Colour code: #42363b
Selected inverse
Visual colour swatch for Selected inverse
Token: selectedInverse
Colour code: #fcedfc
Selected Background
Visual colour swatch for Selected Background
Token: selectedBackground
Colour code: #8b008b
Selected Background Secondary
Visual colour swatch for Selected Background Secondary
Token: selectedBackgroundSecondary
Colour code: #42363b
Selected Background Inverse
Visual colour swatch for Selected Background Inverse
Token: selectedBackgroundInverse
Colour code: #fcedfc
Selected Background Secondary Inverse
Visual colour swatch for Selected Background Secondary Inverse
Token: selectedBackgroundSecondaryInverse
Colour code: #c6c3c4
Border
Form
Visual colour swatch for Form
Token: borderForm
Colour code: #8f85b0
Presentation
Visual colour swatch for Presentation
Token: borderPresentation
Colour code: #dedbe8
Critical
Default
Visual colour swatch for Default
Token: criticalDefault
Colour code: #d42200
Background
Visual colour swatch for Background
Token: criticalBackground
Colour code: #fdedea
Text
Visual colour swatch for Text
Token: criticalText
Colour code: #af1c00
Warning
Default
Visual colour swatch for Default
Token: warningDefault
Colour code: #ce7100
Background
Visual colour swatch for Background
Token: warningBackground
Colour code: #fcefe0
Text
Visual colour swatch for Text
Token: warningText
Colour code: #a64a00
Information
Default
Visual colour swatch for Default
Token: informationDefault
Colour code: #3d8cde
Background
Visual colour swatch for Background
Token: informationBackground
Colour code: #e7f1fb
Text
Visual colour swatch for Text
Token: informationText
Colour code: #0c6ccd
Success
Default
Visual colour swatch for Default
Token: successDefault
Colour code: #0b9b75
Background
Visual colour swatch for Background
Token: successBackground
Colour code: #e2f4ef
Text
Visual colour swatch for Text
Token: successText
Colour code: #097b5d
Utility
Utility
Visual colour swatch for Utility
Token: utility
Colour code: #73669c
Utility 2
Visual colour swatch for Utility 2
Token: utility2
Colour code: #8f878a
Utility 3
Visual colour swatch for Utility 3
Token: utility3
Colour code: #0e9e43
Utility 4
Visual colour swatch for Utility 4
Token: utility4
Colour code: #1771b1
Dark mode colour
Brand
Primary
Visual colour swatch for Primary
Token: brandPrimary
Colour code: #86ccfe
Secondary
Visual colour swatch for Secondary
Token: brandSecondary
Colour code: #beffd6
Tertiary
Visual colour swatch for Tertiary
Token: brandTertiary
Colour code: #f2f1f1
Content
Text primary
Visual colour swatch for Text primary
Token: textPrimary
Colour code: #f2f1f1
Text secondary
Visual colour swatch for Text secondary
Token: textSecondary
Colour code: #dedcdd
Text tertiary
Visual colour swatch for Text tertiary
Token: textTertiary
Colour code: #8f878a
Heading
Visual colour swatch for Heading
Token: textHeading
Colour code: #86ccfe
Text primary inverse
Visual colour swatch for Text primary inverse
Token: textInverse
Colour code: #f2f1f1
Text secondary inverse
Visual colour swatch for Text secondary inverse
Token: textTertiaryInverse
Colour code: #dedcdd
Text tertiary inverse
Visual colour swatch for Text tertiary inverse
Token: textTertiaryInverse
Colour code: #8f878a
Heading inverse
Visual colour swatch for Heading inverse
Token: textHeadingInverse
Colour code: #86ccfe
Background
Primary
Visual colour swatch for Primary
Token: backgroundPrimary
Colour code: #232323
Secondary
Visual colour swatch for Secondary
Token: backgroundSecondary
Colour code: #313131
Tertiary
Visual colour swatch for Tertiary
Token: backgroundTertiary
Colour code: #393939
Fourth
Visual colour swatch for Fourth
Token: backgroundFourth
Colour code: #2a3b47
Fifth
Visual colour swatch for Fifth
Token: backgroundFifth
Colour code: #304452
Inverse Primary
Visual colour swatch for Inverse Primary
Token: backgroundInverse
Colour code: #232323
Inverse Secondary
Visual colour swatch for Inverse Secondary
Token: backgroundSecondaryInverse
Colour code: #313131
Inverse Tertiary
Visual colour swatch for Inverse Tertiary
Token: backgroundTertiaryInverse
Colour code: #393939
Modal
Visual colour swatch for Modal
Token: backgroundModal
Colour code: rgba(255, 255, 255, 0.4)
Loading
Visual colour swatch for Loading
Token: backgroundLoading
Colour code: #514285
Interactive
Interactive
Visual colour swatch for Interactive
Token: interactive
Colour code: #beffd6
Interactive Secondary
Visual colour swatch for Interactive Secondary
Token: interactiveSecondary
Colour code: #fff
Interactive Inverse
Visual colour swatch for Interactive Inverse
Token: interactiveInverse
Colour code: #beffd6
Interactive Secondary Inverse
Visual colour swatch for Interactive Secondary Inverse
Token: interactiveSecondaryInverse
Colour code: #fff
Interactive background
Visual colour swatch for Interactive background
Token: interactiveBackground
Colour code: #074d21
Interactive background inverse
Visual colour swatch for Interactive background inverse
Token: interactiveBackgroundInverse
Colour code: #074d21
Link default
Visual colour swatch for Link default
Token: linkDefault
Colour code: #beffd6
Interactive hover
Visual colour swatch for Interactive hover
Token: linkHover
Colour code: #e3ffed
Interactive active
Visual colour swatch for Interactive active
Token: linkActive
Colour code: #dfffeb
Interactive visited
Visual colour swatch for Interactive visited
Token: interactiveVisited
Colour code: #aba4c4
Selected
Selected
Visual colour swatch for Selected
Token: selected
Colour code: #f6aaf6
Selected Secondary
Visual colour swatch for Selected Secondary
Token: selectedSecondary
Colour code: #c6c3c4
Selected inverse
Visual colour swatch for Selected inverse
Token: selectedInverse
Colour code: #fcedfc
Selected Background
Visual colour swatch for Selected Background
Token: selectedBackground
Colour code: #790079
Selected Background Secondary
Visual colour swatch for Selected Background Secondary
Token: selectedBackgroundSecondary
Colour code: #42363b
Selected Background Inverse
Visual colour swatch for Selected Background Inverse
Token: selectedBackgroundInverse
Colour code: #790079
Selected Background Secondary Inverse
Visual colour swatch for Selected Background Secondary Inverse
Token: selectedBackgroundSecondaryInverse
Colour code: #42363b
Border
Form
Visual colour swatch for Form
Token: borderForm
Colour code: #746a6e
Presentation
Visual colour swatch for Presentation
Token: borderPresentation
Colour code: #4b3f44
Critical
Elements
Visual colour swatch for Elements
Token: criticalDefault
Colour code: #f38b78
Background
Visual colour swatch for Background
Token: criticalBackground
Colour code: #731200
Text
Visual colour swatch for Text
Token: criticalText
Colour code: #f38b78
Warning
Elements
Visual colour swatch for Elements
Token: warningDefault
Colour code: #f1ba76
Background
Visual colour swatch for Background
Token: warningBackground
Colour code: #563000
Text
Visual colour swatch for Text
Token: warningText
Colour code: #f1ba76
Information
Elements
Visual colour swatch for Elements
Token: informationDefault
Colour code: #a2c8ef
Background
Visual colour swatch for Background
Token: informationBackground
Colour code: #07396e
Text
Visual colour swatch for Text
Token: informationText
Colour code: #a2c8ef
Success
Elements
Visual colour swatch for Elements
Token: successDefault
Colour code: #87d3be
Background
Visual colour swatch for Background
Token: successBackground
Colour code: #054131
Text
Visual colour swatch for Text
Token: successText
Colour code: #87d3be
Utility
Utility
Visual colour swatch for Utility
Token: utility
Colour code: #8f85b0
Utility 2
Visual colour swatch for Utility 2
Token: utility2
Colour code: #746a6e
Utility 3
Visual colour swatch for Utility 3
Token: utility3
Colour code: #074d21
Utility 4
Visual colour swatch for Utility 4
Token: utility4
Colour code: #1d8ede
WCAG AAA mode colour
Brand
Primary
Visual colour swatch for Primary
Token: brandPrimary
Colour code: #514285
Secondary
Visual colour swatch for Secondary
Token: brandSecondary
Colour code: #0b7d35
Tertiary
Visual colour swatch for Tertiary
Token: brandTertiary
Colour code: #3a2d32
Text
Text primary
Visual colour swatch for Text primary
Token: textPrimary
Colour code: #3a2d32
Text secondary
Visual colour swatch for Text secondary
Token: textSecondary
Colour code: #42363b
Text tertiary
Visual colour swatch for Text tertiary
Token: textTertiary
Colour code: #55494d
Heading
Visual colour swatch for Heading
Token: textHeading
Colour code: #514285
Text primary inverse
Visual colour swatch for Text primary inverse
Token: textInverse
Colour code: #fff
Text secondary inverse
Visual colour swatch for Text secondary inverse
Token: textTertiaryInverse
Colour code: #c6c3c4
Text tertiary inverse
Visual colour swatch for Text tertiary inverse
Token: textTertiaryInverse
Colour code: #8f878a
Heading inverse
Visual colour swatch for Heading inverse
Token: textHeadingInverse
Colour code: #c6c2d7
Background
Primary
Visual colour swatch for Primary
Token: backgroundPrimary
Colour code: #fff
Secondary
Visual colour swatch for Secondary
Token: backgroundSecondary
Colour code: #f7f7f7
Tertiary
Visual colour swatch for Tertiary
Token: backgroundTertiary
Colour code: #f2f1f1
Fourth
Visual colour swatch for Fourth
Token: backgroundFourth
Colour code: #f1f0f5
Fifth
Visual colour swatch for Fifth
Token: backgroundFifth
Colour code: #dedbe8
Inverse Primary
Visual colour swatch for Inverse Primary
Token: backgroundInverse
Colour code: #000
Inverse Secondary
Visual colour swatch for Inverse Secondary
Token: backgroundSecondaryInverse
Colour code: #3a2d32
Inverse Tertiary
Visual colour swatch for Inverse Tertiary
Token: backgroundTertiaryInverse
Colour code: #42363b
Modal
Visual colour swatch for Modal
Token: backgroundModal
Colour code: rgba(0, 0, 0, 0.6)
Loading
Visual colour swatch for Loading
Token: backgroundLoading
Colour code: #c6c2d7
Interactive
Interactive
Visual colour swatch for Interactive
Token: interactive
Colour code: #085926
Interactive Secondary
Visual colour swatch for Interactive Secondary
Token: interactiveSecondary
Colour code: #42363b
Interactive Inverse
Visual colour swatch for Interactive Inverse
Token: interactiveInverse
Colour code: #fff
Interactive Secondary Inverse
Visual colour swatch for Interactive Secondary Inverse
Token: interactiveSecondaryInverse
Colour code: #beffd6
Interactive background
Visual colour swatch for Interactive background
Token: interactiveBackground
Colour code: #085926
Interactive background inverse
Visual colour swatch for Interactive background inverse
Token: interactiveBackgroundInverse
Colour code: #fff
Link default
Visual colour swatch for Link default
Token: linkDefault
Colour code: #085926
Interactive hover
Visual colour swatch for Interactive hover
Token: linkHover
Colour code: #074d21
Interactive active
Visual colour swatch for Interactive active
Token: linkActive
Colour code: #053918
Interactive visited
Visual colour swatch for Interactive visited
Token: interactiveVisited
Colour code: #3d2c77
Selected
Selected
Visual colour swatch for Selected
Token: selected
Colour code: #8b008b
Selected Secondary
Visual colour swatch for Selected Secondary
Token: selectedSecondary
Colour code: #42363b
Selected inverse
Visual colour swatch for Selected inverse
Token: selectedInverse
Colour code: #fcedfc
Selected Background
Visual colour swatch for Selected Background
Token: selectedBackground
Colour code: #8b008b
Selected Background Secondary
Visual colour swatch for Selected Background Secondary
Token: selectedBackgroundSecondary
Colour code: #42363b
Selected Background Inverse
Visual colour swatch for Selected Background Inverse
Token: selectedBackgroundInverse
Colour code: #fcedfc
Selected Background Secondary Inverse
Visual colour swatch for Selected Background Secondary Inverse