Overview
Color contrast ensures that text and visuals are readable by everyone, including users with low vision or color perception differences. Canvas Ally flags this issue when foreground and background colors do not meet WCAG contrast ratios or when color is used alone to convey meaning. By following these steps, you will learn how to identify low-contrast content, adjust color settings using hex codes, and ensure your Word document meets accessibility standards.
What Is a Color Code (Hex Code)?
A color code, also called a hex code, is a six-character combination of numbers and letters that represents a specific color. Each color begins with a # symbol followed by six digits.
For example, #000000 represents black, #FFFFFF represents white, and #003366 represents dark blue. These codes allow you to pick exact shades rather than guessing from the color palette.
Using hex codes helps you test and correct colors precisely when working with online contrast checkers or customizing Word themes. Accessible color combinations typically include black text on a white background, dark blue on light gray, or dark gray on cream. The key is strong contrast between text and background rather than a specific color.
Understand Color Contrast
Before adjusting your document, learn why color contrast matters and how to evaluate it.
Step 1: Test the Colors in Your Document
Start by finding out which colors are causing low contrast.
- Open your Word document and review any text, shapes, or highlights that use color.
- Identify the text color and background color using the Font Color and Shading tools under the Home tab.
- Use one of the following free tools to test the color contrast ratio:
Step 2: Change or Customize Colors in Design
Once you know which colors fail, update them directly in your document.
- Go to the Design tab and select Colors > Customize Colors.
- In the color picker window, choose the drop-down arrow next to a theme color (for example, Accent 1 or Hyperlink).
- Select More Colors, then go to the Custom tab.
- In the Hex field, type or paste your new color code (for example, #000000 for black or #003366 for dark blue).
- Preview the change in the Sample area.
- Click Save to apply or Reset to undo.
- (Optional) Save your new color set as a custom theme to reuse later.
Watch: Change a Theme and Make It the Default in Word or Excel (Microsoft Support)
Step 3: Update Colors Within the Document
After changing the theme, existing text or shapes may still keep their old colors. Apply your new accessible colors directly to the content.
- Highlight the text you want to fix.
- On the Home tab, open the Font Color menu and select a color from your updated theme, or choose More Colors to enter a hex code.
- For larger sections, apply changes through the Styles pane by modifying the Normal or Heading styles to use the new accessible colors.
- Recheck any shapes, borders, or charts to ensure that the color contrast meets the same standards.
Tip: Updating styles ensures that future edits automatically follow your accessible color choices.
Step 4: Apply Design Best Practices
- Use black or dark gray text on a white or light background whenever possible.
- Keep hyperlink text underlined and in a blue that passes contrast checks.
- Avoid low-contrast combinations such as light gray or yellow on white.
- When using color for emphasis, pair it with bold text or labels so meaning is not lost.
- If you use shading or colored boxes, test both the text and background color together.
Step 5: Verify and Save
- Run the Accessibility Checker under the Review tab to confirm no contrast issues remain.
- Save your document.
- When exporting to PDF, use our Saving Word and PowerPoint (PPT) Files to PDF Guide for a more accessible PDF export.
Resources
For more, review these additional resources:
Support
For support, email [email protected].
