Canvas' Rich Content Editor gives you access to a range of colours for text and backgrounds. Not all of them are safe to use for body text — some only have enough contrast for headings or large UI elements, and others should be reserved for backgrounds, borders, and highlights only.

The tables below summarise which colours are suitable for use as text on a white background in Canvas content. They are grouped by their WCAG contrast rating when used as text on white:

  • AAA / AA — suitable for body text on white.
  • AA — suitable for large text, headings or UI elements on white.
  • Accent / background only — not recommended for text on white; best used for backgrounds, borders or highlights.

Useful references

AAA-compliant colour combinations

The combinations below all meet WCAG AAA contrast (7:1 ratio or higher). Use these when you want the strongest possible accessibility guarantee — for example in body paragraphs, callout boxes, and alert messages.

Dark text on light or coloured backgrounds

Text colourBackground colourExampleRatio
Black #000000White #ffffff21:1
Dark #232333White #ffffff15.4:1
Navy #000080White #ffffff16.1:1
Medium Blue #0000cdWhite #ffffff11.2:1
Indigo #4b0082White #ffffff13:1
Dark Green #006400White #ffffff7.4:1
Saddle Brown #8b4513White #ffffff7.1:1
Black #000000Yellow #fff20018:1
Black #000000Pale Green #98fb9816.6:1
Black #000000Pale Turquoise #afeeee16.4:1
Black #000000Lavender #e6e6fa16.8:1

Light text on dark backgrounds

Text colourBackground colourExampleRatio
White #ffffffBlack #00000021:1
White #ffffffDark #23233315.4:1
White #ffffffNavy #00008016.1:1
White #ffffffMedium Blue #0000cd11.2:1
White #ffffffIndigo #4b008213:1
White #ffffffDark Green #0064007.4:1
White #ffffffSaddle Brown #8b45137.1:1
Pink #ffd6e5Medium Blue #0000cd8.5:1

Colours suitable for body text on white (AAA / AA)

ColourHexExampleRating (on white)
Black#000000AAA / AA
Dark#232333AAA / AA
Navy#000080AAA / AA
Medium Blue#0000cdAAA / AA
Saddle Brown#8b4513AAA / AA
Teal#008080AAA / AA
Medium Violet Red#c71585AAA / AA
Indigo#4b0082AAA / AA
Crimson#dc143cAAA / AA
Dark Green#006400AAA / AA

Colours for large text, headings or UI (AA on white)

The colours below meet AA contrast for text on white, but are best reserved for larger text (such as headings) or for interface elements like buttons and labels, rather than long paragraphs.

ColourHexExampleRating (on white)
Slate Grey#708090AA
Medium Blue Slate#7b68eeAA
Red#ff0000AA
Orange Red#ff4500AA

Accent and background colours (not for text on white)

The colours below are generally not suitable for body text on a white background. They can be used as background fills, borders, highlights, or within graphics, provided the contrast with any overlaid text is checked.

ColourHexExampleNotes
White#ffffffUse as a background, not as text on white.
White Smoke#f5f5f5Use as a light background panel.
Deep Sky Blue#00bfffAccent or background; not recommended for text on white.
Yellow#ffff00Highlight or accent only; very low contrast as text.
Khaki#f0e68cUse as a soft background or accent.
Turquoise#40e0d0Accent colour; check contrast if used behind text.
Pale Turquoise#afeeeeLight background only; avoid for text.
Violet#ee82eeAccent colour; not for body text on white.
Light Pink#ffb6c1Light background only.
Lavender#e6e6faSubtle background panel or highlight.
Salmon#fa8072Accent; avoid as text on white.
Dark Orange#ff8c00Accent colour; check contrast when used.
Orange#ffa500Accent only; not recommended for text on white.
Spring Green#00ff7fHighlight or accent; check contrast carefully.
Pale Green#98fb98Soft background only; avoid for text on white.

Using colours in Canvas content

When applying colours in Canvas, use them through inline styles on text or container elements. For example:

<p style="color: #0000cd;">
  This paragraph uses Medium Blue as text on a white background.
</p>
<div style="background-color: #f5f5f5; padding: 1rem;">
  <p>This panel uses White Smoke as a light background.</p>
</div>

For combinations not shown here, use the WebAIM Contrast Checker to verify that your chosen colours meet at least AA contrast (4.5:1 for normal text, 3:1 for large text).