Colour contrast issue with blue links on white or light grey #4011
Labels
accessibility
audit july 2024
Issues from July 2024 external accessibility audit against WCAG 2.2 criteria
This issue is from the accessibility audit of the Design System website by DAC in July 2024.
DAC's description
Blue on light grey
The colour contrast on the blue link text against the grey background failed to meet the expected ratio to pass WCAG 2.2 AAA. The expected ratio for colour contrast with text should be at least 7:1, however the colour contrast ratio for text within this element is 4.87:1. This may be problematic for visually impaired users.
Foreground:
#1D70B8
Background:
#F8F8F8
Font Size: 19px
Ratio: 4.87:1
Current code:
Blue on white
The colour contrast on the blue link text against the white background failed to meet the expected ratio to pass WCAG 2.2 AAA. The expected ratio for colour contrast with text should be at least 7:1, however the colour contrast ratio for text within this element is 5.17:1. This may be problematic for visually impaired users.
Foreground:
#1D70B8
Background:
#FFFFFF
Font Size: 19px
Ratio: 5.17:1
Current code:
DAC's proposed solution
For sites to meet AAA, they must comply with WCAG 2.2 checkpoint 1.4.6 for colour contrast.
As far as contrast ratio is concerned, it must at least be:
Thoughts on solution
This is a known issue (see links under 'related issues').
Making the link colour darker would mean it's harder to distinguish from the surrounding text, which is also an accessibility issue. For that reason we have previously never "fixed" this.
Due to potential upcoming work on colours, we should revisit that decision then.
Related to that, we had checked all of our colour combinations against the upcoming WCAG 3 APCA calculation. That would be worth sharing with the people working on said project.
Related issues
Additional instances
Blue links on white are the standard, so happen on all pages. Blue links on grey only happen sometimes.
If we wanted to fix this, we'd need to check under which circumstances links can be on light grey and fix all of those instances.
Needed roles
Designer
The text was updated successfully, but these errors were encountered: