Two steps forward? Making accessibility easier.
Presented at UCISA-UX: Accessibility in HE, Tuesday 28 June 2022.
Presentation recording and transcript
Synopsis
The UCISA-UX team asked whether we "made something easier for everyone to use"? In this five-minute slot I will share two topics on that theme:
- Brand colour contrast made easy
- Accessibility inspector for everyone
Resources
- Slide Deck [4 MB PPTX]
- UoS brand colour accessibility matrix
Links
Relevant WCAG criteria
- 1.4.11 Non-text Contrast (Level AA)
- 2.4.11 Focus Appearance (Minimum)
- 1.4.3 Contrast (Minimum) (Level AA)
- 2.4.12 Focus Appearance (Enhanced)
- 1.4.6: Contrast (Enhanced)
Other links
- The WebAIM Million: The 2022 report on the accessibility of the top 1,000,000 home pages
- Calculating relative luminance and contrast ratio
- Colour Theory and Contrast Ratios.
- Who Can Use: Colour contrast checking tool.
- Check accessibility as you work in Microsoft Office
Other similar contrast tools I found after I wrote my script
- University of Sussex have a brilliant dynamic brand colour accessibility page.
- Accessible color palette builder
- Contrast Grid
- Color Box
- Material Designs Color Tool
Other useful colour contrast tools
- Find the Perfect Contrast Between Light Text and a Background Image.
- Color Safe: Find accessible colours that contrast with a specific colour you wish to use.
- tanaguru contrast finder: Find accessible options, between two colours you specify where one of the colours does not meet the minimum threshold for contrast.
- PowerToys for Windows 10 has a fantastic colour picker tool, this helps you identify colour codes.
Interesting presentations about colour contrast
- Accessibility in Color Systems by James Sullivan
- How Color Contrast Got Their Attention by Patrick Sturdivant and Debbie Schulz
- Retrofitting for an Accessible Color Palette: Beyond the "Nice-to-Have" Improvement by Marion Couesnon
Would you like a brand colour accessibility matrix for your colour palette?
I can generate a brand colour accessibility matrix for your colour palette. To do so I will need to know:- Create text or CSV (comma separated) file containing the HTML colour codes of your brand. Remember to include the color white, it may not be in your official brand, but it is very likely that you use it in your materials.
- If you use 'vanity names' for your colours, include them as shown in the example below.
- Put the colours in the order in which they should be presented. You might want the colours to be in the order of the colour spectrum for example, or your brand might prefer to group certain colours together.
- Email your text or CSV file to me and let me know the name of your institution or brand. The institution or brand name will appear in the title of the page.
- Within a week I will send you a zip file containing the HTML files and dataset that you may then use with your colleagues or host on your website. You are free to make any changes you wish to the files, copy them, share them as you like. Here is an example zip file for the University of Southampton accessibility matrix. The script takes between 1 and 4 hours to run depending on the amount of colours in the brand. The length of time is because the WebAIM API is used for checking and I leave a ten second delay between each query so as not to hammer it.
#FAFF7F, Medicine yellow
#FF5154, Art pink
#91A6FF, Science blue
#FF0000, Humanities red
#228B22, Biology green
#181818, University black.
Addendum 1: Focus indicators
During the question and answer session, I described a technique for using two colour focus indicators so that whatever colour background was in use, the focus indicator would always have sufficient contrast.
I got the use of box-shadow and outline confused in my answer. So I edited that part out of the above recording.
I have created a codepen that demonstrates this technique. Use the button in box 1 to randomise the colours in box 2. Hover your mouse or focus on the button in box 2 to see that the focus indicator is always clear.
See the Pen Demonstration of "C40: Creating a two-color focus indicator to ensure sufficient contrast with all components" by matthewdeeprose (@matthewdeeprose) on CodePen.
Addendum 2: Implementation plan for making accessibility inspector check whilst you work by default
We have now successfully implemented this change. It's early days but feedback so far is positive. Here is a slightly anonymised implementation plan, with thanks to my colleague Nick Williams for sharing it.
This guidance is provided on a best-efforts basis. It should be tested in a pre-production environment first. No guarantees or assurances etc.
Implementation plan
- Login to a management server
- Edit the Group Policy [This will be unique to your environment]
- Navigate to User Configuration > Preferences > Windows Settings > Registry
- Create a new Registry Collection called "Office Accessibility Checker"
- Inside the new collection (folder) create three new registry keys (NB The Value Name for Word is different to Excel and Powerpoint!):
Word
General Tab:
Action: Create
Hive: HKEY_CURRENT_USER
Key Path: Software\Microsoft\Office\16.0\Word\Options
Value Name: enableacccheckerstatusbaritem
Value Type: REG_DWORD
Value Data: 1
Common Tab:
Apply Once and do not reapply.
Excel
General Tab:
Action: Create
Hive: HKEY_CURRENT_USER
Key Path: Software\Microsoft\Office\16.0\Excel\Options
Value Name: enableaccchecker
Value Type: REG_DWORD
Value Data: 1
Common Tab:
Apply Once and do not reapply.
PowerPoint
General Tab:
Action: Create
Hive: HKEY_CURRENT_USER
Key Path: Software\Microsoft\Office\16.0\Powerpoint\Options
Value Name: enableaccchecker
Value Type: REG_DWORD
Value Data: 1
Common Tab:
Apply Once and do not reapply.
Post-implementation Testing
- Login to any GPO-managed Windows Workstation
- Run a "gpupdate /force" to pick up the new settings
- Open (in turn) Word, Excel and PowerPoint
- Create a new document
- Click "File" > "Options" > "Ease of Access"
- "Keep accessibility checker running while I work" should be TICKED (and can be unticked/re-ticked at will)
- There should also be "Accessibility: Good to go" in the bottom left of the application's window
Backout plan
- Login to a management server
- Edit the Group Policy [This will be unique to your environment]
- Navigate to User Configuration > Preferences > Windows Settings > Registry
- Navigate to the Registry Collection called "Office Accessibility Checker"
- Disable the three Registry items inside (to prevent any new deployment of the keys)
To revert the change completely (not recommended)
- Login to a management server
- Edit the Group Policy [This will be unique to your environment]
- Navigate to User Configuration > Preferences > Windows Settings > Registry
- Navigate to the Registry Collection called "Office Accessibility Checker"
-
Disable the three Registry items inside (to prevent any new deployment of the keys)
- Copy and paste each key, in turn
- Change the "Create" to a "Replace"
- Change the Value "1" to a "0"
- Make sure "Apply Once and do not reapply" is still ticked on the "Common" tab
- Enable each newly create key, in turn