Colors
Learn about how to use colors across our products.
Color and text
Use color in typography only when it carries a clear semantic meaning:
- Indigo is for actionable elements only. Do not use indigo for titles, headings, or body text unless the text is a link or another interactive element. For static text, use neutral (grey) styling so that indigo stays a reliable signal for “click here.”
- Default to neutral text. Use the grey scale for headers, body, and captions. Express hierarchy with typography (size, weight) and spacing first; use color as a semantic signal (links, errors, status).
- No ad-hoc colored text. Do not invent emphasis with custom colors. For emphasis use Strong, headings, or semantic components (e.g. Alert, Tag, or form error/help text from Murray form components).
Grey Scale
Our grey scale has a teensy drop of purple so that it ties well with our indigo.
| Design Token | Hexa | Preview | Contrast | Usage |
|---|---|---|---|---|
| $grey900 | #282830 | AAA - 14.62 | ||
| $grey800 | #464754 | AAA - 9.17 | ||
| $grey700 | #656779 | AA - 5.57 | ||
| $grey600HighContrast | #656779 | AA - 5.57 | ||
| $grey600Base | #82879c | Fail - 3.56 | ||
| $grey500Base | #9da3ba | Fail - 2.51 | ||
| $grey500 | #9da3ba | Fail - 2.51 | ||
| $grey400 | #b4bcd3 | Fail - 1.90 | ||
| $grey300 | #c9d1e7 | Fail - 1.53 | ||
| $grey200HighContrast | #82879c | Fail - 3.56 | ||
| $grey200Base | #dbe2f4 | Fail - 1.30 | ||
| $grey100 | #ecf1fc | Fail - 1.13 | ||
| $grey50 | #f5f8fe | Fail - 1.06 | ||
| $grey0 | #ffffff | Fail - 1.00 |
Functional colors
Also known as semantic colors. They are helpful to convey a meaning or state. Eg. the color green can be used to reinforce positive messaging.
In terms of accessibility, colors in the 500, 700, and 900 ranges have a minimum WCAG AA ratio above 4.5:1 against white or 100 backgrounds (excluding green, pink & orange that we need to improve).
$indigo900
#0c0a66
$indigo700
#2f33a8
$indigo500
#5c59f3
$indigo300
#8c99fa
$indigo100
#d6dbff
$indigo50
#f0f3ff
$blue900
#0057d1
$blue700
#0a70ff
$blue500
#579dff
$blue300
#94c1ff
$blue100
#c7deff
$blue50
#ebf5ff
$teal900
#124548
$teal700
#1c6e67
$teal500
#2aa79c
$teal300
#81dfd7
$teal100
#d2f4f1
$teal50
#ebfaf9
$green900
#134d35
$green700
#367940
$green500
#7fca6c
$green300
#beeeb2
$green100
#ecf7e9
$green50
#ecf7e9
$yellow700
#ff9d00
$yellow500
#ffb619
$yellow300
#ffcd59
$yellow100
#ffe49e
$yellow50
#fff6df
$orange900HighContrast
#8F2200
$orange900Base
#cf3302
$orange700HighContrast
#cf3302
$orange700Base
#ff6d39
$orange500HighContrast
#cf3302
$orange500Base
#ff9359
$orange300
#ffbd7a
$orange100
#ffe1c5
$orange50
#fff3e5
$red900HighContrast
#520016
$red900Base
#820a2a
$red700HighContrast
#9e1924
$red700Base
#c9202e
$red500HighContrast
#9e1924
$red500Base
#ed4e4e
$red300
#ffabb0
$red100
#ffe8e9
$red50
#ffe8e9
$pink900HighContrast
#66002b
$pink900Base
#9c0042
$pink700HighContrast
#b80037
$pink700Base
#ff2365
$pink500HighContrast
#b80037
$pink500Base
#ff709b
$pink300
#ffaac8
$pink100
#ffd1e1
$pink50
#ffe7f0
High contrast colors
High contrast colors are explicited above for documentation purpose.
When used in Alan apps, it will automatically take the appropriate value depending on the theme.
For example the red500 color will have the #ed4e4e value in the default theme and #9e1924 in the enhanced accessibility theme.
Exception
It wouldn't be funny otherwise. We use a specific yellow in the product whenever we want an highlighter effect. Use it with grey-900 text. It's very useful when we want to emphasize information to the member in the product and using medium weight is not enough.