SlideShare a Scribd company logo
1 of 92
0
Roger Attrill, UX Specialist
Linguamatics, an IQVIA company
@think_ui
UX Scotland 07-09 June 2023
Colour, Contrast, and Accessibility:
Not as black and white as it seems!
1
A bit about me ( the boring bit )
2
3
4
5
Sorry!
6
P
E
R
C
E
P
TI
O
N
O
F
C
O
L
O
U
R
7
8
9
10
11
12
Eliel Saarinen
Photo credit: Photography by James Haefner, 2016; Courtesy Cranbrook Center for Collections and Research
“Always design a thing by considering
it in its next larger context –
a chair in a room,
a room in a house,
a house in an environment,
an environment in a city plan.”
13
Colo(u)r
14
Attract attention
Group or differentiate elements
Attach meaning
Enhance aesthetics
Why use colour in the first place?
15
What could go wrong?
Too many colours - busy & too much to process
Clashing colours - looks harsh and poorly planned
Saturated colours - exciting, dynamic, tiring
Symbolism - inappropriate cultural meaning
Not everyone can (equally) distinguish all colours
16
Cultural meanings?
Tokyo Stock Exchange by Dick Thomas Johnson (CC BY 2.0 - https://www.flickr.com/photos/31029865@N06/6646813851 )
17
Solvable problems, except for one
Too many colours - busy & too much to process
Clashing colours - looks harsh and poorly planned
Saturated colours - exciting, dynamic, tiring
Symbolism - inappropriate cultural meaning
Not everyone can (equally) distinguish all colours
18
Catering for everyone – the flaw of averages
https://www.thestar.com/news/insight/2016/01/16/when-us-air-force-discovered-the-flaw-of-averages.html
19
The guidelines (WCAG)
20
What does WCAG tell us to do?
Colour should not be the sole method of conveying or
distinguishing content
Text has a contrast ratio of at least 4.5:1 (AA)
Large text has a contrast ratio of at least 3:1 (AA)
https://www.w3.org/TR/WCAG21/
A
AA
AAA
21
What does WCAG tell us to do?
Colour should not be the sole method of conveying or
distinguishing content
Text has a contrast ratio of at least 4.5:1 (AA)
Large text has a contrast ratio of at least 3:1 (AA)
https://www.w3.org/TR/WCAG21/
22
What does WCAG tell us to do?
Colour should not be the sole method of conveying or
distinguishing content
Text has a contrast ratio of at least 4.5:1 (AA)
Large text has a contrast ratio of at least 3:1 (AA)
https://www.w3.org/TR/WCAG21/
23
What does WCAG tell us to do?
Colour should not be the sole method of conveying or
distinguishing content
Text has a contrast ratio of at least 4.5:1 (AA)
Large text has a contrast ratio of at least 3:1 (AA)
https://www.w3.org/TR/WCAG21/
24
What does WCAG tell us to do?
Colour should not be the sole method of conveying or
distinguishing content
Text has a contrast ratio of at least 4.5:1 (AA)
Large text has a contrast ratio of at least 3:1 (AA)
https://www.w3.org/TR/WCAG21/
25
Grey text
1 #808080 = 3.94 : 1
26
Grey text
1 #808080 = 3.94 : 1
27
Grey text
1 #808080 = 3.94 : 1
2 #767676 = 4.54 : 1
28
Grey text
1 #808080 = 3.94 : 1
2 #767676 = 4.54 : 1
3 #626262 = 6.09 : 1
29
Grey text
1 #808080 = 3.94 : 1
2 #767676 = 4.54 : 1
3 #626262 = 6.09 : 1
4 #595959 = 7.00 : 1
#202020 = 16.29 : 1
30
Twitter blue
31
What is going on?
#FFFFFF = 3.0 : 1
#1D9BF0
32
What is going on?
#FFFFFF = 3.0 : 1
#000000 = 6.99 : 1
#1D9BF0
33
The WCAG 2 contrast algorithm is not fit for purpose
Simplistic
Out of date
34
Orange and blue
WHITE 3.03 : 1
BLACK 6.93 : 1
WHITE 3.80 : 1
BLACK 5.53 : 1
✓
✘
✓
✘
WCAG 2 contrast ratios
#FF6000
#0080FF
35
Introducing APCA for WCAG 3
Advanced
Perceptual
Contrast
Algorithm
36
APCA for WCAG 3
TOOL: https://www.myndex.com/APCA/
DOC: https://github.com/Myndex/SAPC-APCA
CODE: https://github.com/Myndex/apca-w3/
37
WCAG 2 vs APCA
38
WCAG 2 contrast ratios
WCAG 2
#000000
#101010
#202020
#303030
#FFFFFF
…
#F0F0F0
39
WCAG 2
40
WCAG 2
41
WCAG 2
42
WCAG 2
43
WCAG 2
44
WCAG 2
45
APCA contrast ratios
Range:
Lc = 0 to 106 (dark on light)
Lc = 0 to -108 (light on dark)
Negative value = negative contrast (‘dark mode’)
Fluent non-body text
e.g. headlines, captions, nav, menus, tips, forms, fields
4.5 : 1 (AA) ~= Lc 60
7 : 1 (AAA) ~= Lc 75
APCA
46
APCA contrast ratios
Range:
Lc = 0 to 106 (dark on light)
Lc = 0 to -108 (light on dark)
Negative value = negative contrast (‘dark mode’)
Fluent non-body text
e.g. headlines, captions, nav, menus, tips, forms, fields
4.5 : 1 (AA) ~= Lc 60
7 : 1 (AAA) ~= Lc 75
Body text
e.g. 2+ lines of continuous text, block, column
4.5 : 1 (AA) ~= Lc 75
7 : 1 (AAA) ~= Lc 90
APCA
47
APCA contrast ratios
APCA
48
APCA
49
APCA
50
WCAG2 vs APCA contrast ratios
( white foreground )
WCAG 2
APCA
51
APCA
52
WCAG2 vs APCA contrast ratios
( black foreground )
WCAG 2
APCA
53
APCA
54
TMI?
55
Orange and blue
WHITE 3.03 : 1
BLACK 6.93 : 1
WHITE 3.80 : 1
BLACK 5.53 : 1
✓
✘
✓
✘
WCAG 2 contrast ratios
#FF6000
#0080FF
61.3 : 1
48.1 : 1
70.1 : 1
39.4 : 1
✘
✓
✘
✓
APCA contrast ratios
56
WCAG 2 vs APCA: Twitter blue
WHITE
BLACK
3.0 : 1
6.99 : 1
WCAG 2 CR
#1D9BF0
61.45
47.94
APCA Lc
✓
✘ ✓
✘
57
WCAG 2 vs APCA: #808080 mid grey text
#808080 3.94 : 1
WCAG 2 CR
66.9
APCA Lc
✘ ✓
#808080 5.32 : 1 34.8 ✘
✓
58
The bigger picture
WCAG 2
WCAG 2
59
The bigger picture
WCAG 2 APCA
60
We should use APCA then?
61
We should use APCA then?
Whooaa! Not so fast...
62
We should use APCA then?
Whooaa! Not so fast...
version 2 of the guidelines are still here
laws are still here
VPATs (Voluntary Product Accessibility Templates) are still here
company design requirements and policies are still here
…all referencing version 2.1 of the guidelines
63
We could use both WCAG and APCA then?
APCA
WCAG 2
APCA
WCAG 2
Safe
64
We could use both WCAG and APCA then?
APCA
WCAG 2
APCA
WCAG 2
Safe
Safe Non-body text
Body text
65
We could use both WCAG and APCA then?
APCA
WCAG 2
APCA
WCAG 2
Safe
Safe
Non-body text
Body text
66
We could use both WCAG and APCA then?
APCA
WCAG 2
APCA
WCAG 2
Safe
Safe
Non-body text
67
We could use both WCAG and APCA then?
APCA
WCAG 2
APCA
WCAG 2
Safe
Safe
Body text
68
We could use both WCAG and APCA then?
APCA
WCAG 2
APCA
WCAG 2
Safe
http://www.myndex.com/BPCA/
69
We could use both WCAG and APCA then?
APCA
WCAG 2
APCA
WCAG 2
Safe
http://www.myndex.com/BPCA/
70
Chrome DevTools (Settings: Experiments)
71
Colourspaces
72
HSL
https://codepen.io/HunorMarton/pen/dvXVvQ/
73
HSL -> HSLuv
https://www.hsluv.org/
https://en.wikipedia.org/wiki/CIELUV
74
Adjusting hue: HSL vs HSLuv
75
Adjusting hue: HSL vs HSLuv
76
Adjusting hue: HSL vs HSLuv
77
Adjusting hue: HSL vs HSLuv
78
Adjusting hue: HSL vs HSLuv
79
Adjusting hue: HSL vs HSLuv
80
Adjusting hue: HSL vs HSLuv
81
Adjusting hue: HSL vs HSLuv
82
Adjusting hue: HSL vs HSLuv
83
In HSLuv, Lightness = Contrast
84
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When use WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]
Takeaways?
85
Takeaways?
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When use WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]
86
Takeaways?
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When use WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]
87
Takeaways?
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When using WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]
88
Takeaways?
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When using WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]
89
Takeaways?
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When using WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]
90
Takeaways?
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When using WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]
91
Takeaways?
Not everyone can distinguish all colours, but contrast really helps
Colour contrast is (probably) more complicated than you thought
When using WCAG guidance, don’t treat contrast limits as targets
Be wary of some backgrounds like blue or orange
Watch out for new guidance or algorithms coming in WCAG 3
Experiment with human-friendly colour spaces like HSLuv
[ I still didn’t answer the question of how we can cater for everyone… ]

More Related Content

Similar to Color contrast and accessibility: Not as black and white as it seems - UX Scotland - June 2023.pptx

Fix The Future - Accessibility Testing Using Wave
Fix The Future - Accessibility Testing Using WaveFix The Future - Accessibility Testing Using Wave
Fix The Future - Accessibility Testing Using WaveKaraMichelleHarkins
 
Generating Natural-Language Text with Neural Networks
Generating Natural-Language Text with Neural NetworksGenerating Natural-Language Text with Neural Networks
Generating Natural-Language Text with Neural NetworksJonathan Mugan
 
Looking Back to Move Forward: Building the Modern Web
Looking Back to Move Forward: Building the Modern WebLooking Back to Move Forward: Building the Modern Web
Looking Back to Move Forward: Building the Modern WebRachel Andrew
 
Awesome free resources for learning javascript
Awesome free resources for learning javascriptAwesome free resources for learning javascript
Awesome free resources for learning javascriptDesignveloper
 
Data oriented design and c++
Data oriented design and c++Data oriented design and c++
Data oriented design and c++Mike Acton
 
A New Age of JVM Garbage Collectors (Clojure Conj 2019)
A New Age of JVM Garbage Collectors (Clojure Conj 2019)A New Age of JVM Garbage Collectors (Clojure Conj 2019)
A New Age of JVM Garbage Collectors (Clojure Conj 2019)Alexander Yakushev
 
Docker: automation for the rest of us
Docker: automation for the rest of usDocker: automation for the rest of us
Docker: automation for the rest of usJérôme Petazzoni
 
BUS216 Exam #3 Review – SP14 1 1. In order to ha.docx
BUS216 Exam #3 Review – SP14  1  1. In order to ha.docxBUS216 Exam #3 Review – SP14  1  1. In order to ha.docx
BUS216 Exam #3 Review – SP14 1 1. In order to ha.docxRAHUL126667
 
The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017
The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017
The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017StampedeCon
 
React Internals - Batching Write Operations by tree Traversal
React Internals - Batching Write Operations by tree TraversalReact Internals - Batching Write Operations by tree Traversal
React Internals - Batching Write Operations by tree TraversalSanjay Krishna Anbalagan
 

Similar to Color contrast and accessibility: Not as black and white as it seems - UX Scotland - June 2023.pptx (20)

Fix The Future - Accessibility Testing Using Wave
Fix The Future - Accessibility Testing Using WaveFix The Future - Accessibility Testing Using Wave
Fix The Future - Accessibility Testing Using Wave
 
Generating Natural-Language Text with Neural Networks
Generating Natural-Language Text with Neural NetworksGenerating Natural-Language Text with Neural Networks
Generating Natural-Language Text with Neural Networks
 
Looking Back to Move Forward: Building the Modern Web
Looking Back to Move Forward: Building the Modern WebLooking Back to Move Forward: Building the Modern Web
Looking Back to Move Forward: Building the Modern Web
 
TAPES.pptx
TAPES.pptxTAPES.pptx
TAPES.pptx
 
2014 toronto-torbug
2014 toronto-torbug2014 toronto-torbug
2014 toronto-torbug
 
Quiz
QuizQuiz
Quiz
 
Awesome free resources for learning javascript
Awesome free resources for learning javascriptAwesome free resources for learning javascript
Awesome free resources for learning javascript
 
Protobuff
ProtobuffProtobuff
Protobuff
 
Data oriented design and c++
Data oriented design and c++Data oriented design and c++
Data oriented design and c++
 
A New Age of JVM Garbage Collectors (Clojure Conj 2019)
A New Age of JVM Garbage Collectors (Clojure Conj 2019)A New Age of JVM Garbage Collectors (Clojure Conj 2019)
A New Age of JVM Garbage Collectors (Clojure Conj 2019)
 
Docker: automation for the rest of us
Docker: automation for the rest of usDocker: automation for the rest of us
Docker: automation for the rest of us
 
Tiad - Docker: Automation for the rest of us
Tiad - Docker: Automation for the rest of usTiad - Docker: Automation for the rest of us
Tiad - Docker: Automation for the rest of us
 
BUS216 Exam #3 Review – SP14 1 1. In order to ha.docx
BUS216 Exam #3 Review – SP14  1  1. In order to ha.docxBUS216 Exam #3 Review – SP14  1  1. In order to ha.docx
BUS216 Exam #3 Review – SP14 1 1. In order to ha.docx
 
Let's Get to the Rapids
Let's Get to the RapidsLet's Get to the Rapids
Let's Get to the Rapids
 
Scrabble
ScrabbleScrabble
Scrabble
 
The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017
The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017
The Search for a New Visual Search Beyond Language - StampedeCon AI Summit 2017
 
React Internals - Batching Write Operations by tree Traversal
React Internals - Batching Write Operations by tree TraversalReact Internals - Batching Write Operations by tree Traversal
React Internals - Batching Write Operations by tree Traversal
 
Quiz servlet
Quiz servletQuiz servlet
Quiz servlet
 
Accessibility for beginners
Accessibility for beginnersAccessibility for beginners
Accessibility for beginners
 
Jessup Archery Brand Book
Jessup Archery Brand BookJessup Archery Brand Book
Jessup Archery Brand Book
 

Recently uploaded

Stark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxStark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxjeswinjees
 
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...Yantram Animation Studio Corporation
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxTusharBahuguna2
 
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130  Available With RoomVIP Kolkata Call Girl Gariahat 👉 8250192130  Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Roomdivyansh0kumar0
 
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Delhi Call girls
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...Suhani Kapoor
 
Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...
Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...
Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...nagunakhan
 
VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...
VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...
VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...Suhani Kapoor
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...ranjana rawat
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...Call Girls in Nagpur High Profile
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...kumaririma588
 
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...Call Girls in Nagpur High Profile
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️soniya singh
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
VIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service Bhiwandi
VIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service BhiwandiVIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service Bhiwandi
VIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service BhiwandiSuhani Kapoor
 
DragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxDragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxmirandajeremy200221
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdftbatkhuu1
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girlsmodelanjalisharma4
 
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...Pooja Nehwal
 

Recently uploaded (20)

Stark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptxStark Industries Marketing Plan (1).pptx
Stark Industries Marketing Plan (1).pptx
 
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
Captivating Charm: Exploring Marseille's Hillside Villas with Our 3D Architec...
 
Design Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptxDesign Inspiration for College by Slidesgo.pptx
Design Inspiration for College by Slidesgo.pptx
 
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130  Available With RoomVIP Kolkata Call Girl Gariahat 👉 8250192130  Available With Room
VIP Kolkata Call Girl Gariahat 👉 8250192130 Available With Room
 
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
Best VIP Call Girls Noida Sector 44 Call Me: 8448380779
 
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service AmravatiVIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
VIP Call Girl Amravati Aashi 8250192130 Independent Escort Service Amravati
 
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
 
Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...
Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...
Punjabi Housewife Call Girls Service Gomti Nagar \ 9548273370 Indian Call Gir...
 
VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...
VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...
VIP Russian Call Girls in Saharanpur Deepika 8250192130 Independent Escort Se...
 
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
(AISHA) Ambegaon Khurd Call Girls Just Call 7001035870 [ Cash on Delivery ] P...
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
 
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...Verified Trusted Call Girls Adugodi💘 9352852248  Good Looking standard Profil...
Verified Trusted Call Girls Adugodi💘 9352852248 Good Looking standard Profil...
 
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
VVIP Pune Call Girls Hadapsar (7001035870) Pune Escorts Nearby with Complete ...
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
VIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service Bhiwandi
VIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service BhiwandiVIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service Bhiwandi
VIP Call Girls Bhiwandi Ananya 8250192130 Independent Escort Service Bhiwandi
 
DragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptxDragonBall PowerPoint Template for demo.pptx
DragonBall PowerPoint Template for demo.pptx
 
Editorial design Magazine design project.pdf
Editorial design Magazine design project.pdfEditorial design Magazine design project.pdf
Editorial design Magazine design project.pdf
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
 
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
 

Color contrast and accessibility: Not as black and white as it seems - UX Scotland - June 2023.pptx

  • 1. 0 Roger Attrill, UX Specialist Linguamatics, an IQVIA company @think_ui UX Scotland 07-09 June 2023 Colour, Contrast, and Accessibility: Not as black and white as it seems!
  • 2. 1 A bit about me ( the boring bit )
  • 3. 2
  • 4. 3
  • 5. 4
  • 8. 7
  • 9. 8
  • 10. 9
  • 11. 10
  • 12. 11
  • 13. 12 Eliel Saarinen Photo credit: Photography by James Haefner, 2016; Courtesy Cranbrook Center for Collections and Research “Always design a thing by considering it in its next larger context – a chair in a room, a room in a house, a house in an environment, an environment in a city plan.”
  • 15. 14 Attract attention Group or differentiate elements Attach meaning Enhance aesthetics Why use colour in the first place?
  • 16. 15 What could go wrong? Too many colours - busy & too much to process Clashing colours - looks harsh and poorly planned Saturated colours - exciting, dynamic, tiring Symbolism - inappropriate cultural meaning Not everyone can (equally) distinguish all colours
  • 17. 16 Cultural meanings? Tokyo Stock Exchange by Dick Thomas Johnson (CC BY 2.0 - https://www.flickr.com/photos/31029865@N06/6646813851 )
  • 18. 17 Solvable problems, except for one Too many colours - busy & too much to process Clashing colours - looks harsh and poorly planned Saturated colours - exciting, dynamic, tiring Symbolism - inappropriate cultural meaning Not everyone can (equally) distinguish all colours
  • 19. 18 Catering for everyone – the flaw of averages https://www.thestar.com/news/insight/2016/01/16/when-us-air-force-discovered-the-flaw-of-averages.html
  • 21. 20 What does WCAG tell us to do? Colour should not be the sole method of conveying or distinguishing content Text has a contrast ratio of at least 4.5:1 (AA) Large text has a contrast ratio of at least 3:1 (AA) https://www.w3.org/TR/WCAG21/ A AA AAA
  • 22. 21 What does WCAG tell us to do? Colour should not be the sole method of conveying or distinguishing content Text has a contrast ratio of at least 4.5:1 (AA) Large text has a contrast ratio of at least 3:1 (AA) https://www.w3.org/TR/WCAG21/
  • 23. 22 What does WCAG tell us to do? Colour should not be the sole method of conveying or distinguishing content Text has a contrast ratio of at least 4.5:1 (AA) Large text has a contrast ratio of at least 3:1 (AA) https://www.w3.org/TR/WCAG21/
  • 24. 23 What does WCAG tell us to do? Colour should not be the sole method of conveying or distinguishing content Text has a contrast ratio of at least 4.5:1 (AA) Large text has a contrast ratio of at least 3:1 (AA) https://www.w3.org/TR/WCAG21/
  • 25. 24 What does WCAG tell us to do? Colour should not be the sole method of conveying or distinguishing content Text has a contrast ratio of at least 4.5:1 (AA) Large text has a contrast ratio of at least 3:1 (AA) https://www.w3.org/TR/WCAG21/
  • 28. 27 Grey text 1 #808080 = 3.94 : 1 2 #767676 = 4.54 : 1
  • 29. 28 Grey text 1 #808080 = 3.94 : 1 2 #767676 = 4.54 : 1 3 #626262 = 6.09 : 1
  • 30. 29 Grey text 1 #808080 = 3.94 : 1 2 #767676 = 4.54 : 1 3 #626262 = 6.09 : 1 4 #595959 = 7.00 : 1 #202020 = 16.29 : 1
  • 32. 31 What is going on? #FFFFFF = 3.0 : 1 #1D9BF0
  • 33. 32 What is going on? #FFFFFF = 3.0 : 1 #000000 = 6.99 : 1 #1D9BF0
  • 34. 33 The WCAG 2 contrast algorithm is not fit for purpose Simplistic Out of date
  • 35. 34 Orange and blue WHITE 3.03 : 1 BLACK 6.93 : 1 WHITE 3.80 : 1 BLACK 5.53 : 1 ✓ ✘ ✓ ✘ WCAG 2 contrast ratios #FF6000 #0080FF
  • 36. 35 Introducing APCA for WCAG 3 Advanced Perceptual Contrast Algorithm
  • 37. 36 APCA for WCAG 3 TOOL: https://www.myndex.com/APCA/ DOC: https://github.com/Myndex/SAPC-APCA CODE: https://github.com/Myndex/apca-w3/
  • 38. 37 WCAG 2 vs APCA
  • 39. 38 WCAG 2 contrast ratios WCAG 2 #000000 #101010 #202020 #303030 #FFFFFF … #F0F0F0
  • 46. 45 APCA contrast ratios Range: Lc = 0 to 106 (dark on light) Lc = 0 to -108 (light on dark) Negative value = negative contrast (‘dark mode’) Fluent non-body text e.g. headlines, captions, nav, menus, tips, forms, fields 4.5 : 1 (AA) ~= Lc 60 7 : 1 (AAA) ~= Lc 75 APCA
  • 47. 46 APCA contrast ratios Range: Lc = 0 to 106 (dark on light) Lc = 0 to -108 (light on dark) Negative value = negative contrast (‘dark mode’) Fluent non-body text e.g. headlines, captions, nav, menus, tips, forms, fields 4.5 : 1 (AA) ~= Lc 60 7 : 1 (AAA) ~= Lc 75 Body text e.g. 2+ lines of continuous text, block, column 4.5 : 1 (AA) ~= Lc 75 7 : 1 (AAA) ~= Lc 90 APCA
  • 51. 50 WCAG2 vs APCA contrast ratios ( white foreground ) WCAG 2 APCA
  • 53. 52 WCAG2 vs APCA contrast ratios ( black foreground ) WCAG 2 APCA
  • 56. 55 Orange and blue WHITE 3.03 : 1 BLACK 6.93 : 1 WHITE 3.80 : 1 BLACK 5.53 : 1 ✓ ✘ ✓ ✘ WCAG 2 contrast ratios #FF6000 #0080FF 61.3 : 1 48.1 : 1 70.1 : 1 39.4 : 1 ✘ ✓ ✘ ✓ APCA contrast ratios
  • 57. 56 WCAG 2 vs APCA: Twitter blue WHITE BLACK 3.0 : 1 6.99 : 1 WCAG 2 CR #1D9BF0 61.45 47.94 APCA Lc ✓ ✘ ✓ ✘
  • 58. 57 WCAG 2 vs APCA: #808080 mid grey text #808080 3.94 : 1 WCAG 2 CR 66.9 APCA Lc ✘ ✓ #808080 5.32 : 1 34.8 ✘ ✓
  • 61. 60 We should use APCA then?
  • 62. 61 We should use APCA then? Whooaa! Not so fast...
  • 63. 62 We should use APCA then? Whooaa! Not so fast... version 2 of the guidelines are still here laws are still here VPATs (Voluntary Product Accessibility Templates) are still here company design requirements and policies are still here …all referencing version 2.1 of the guidelines
  • 64. 63 We could use both WCAG and APCA then? APCA WCAG 2 APCA WCAG 2 Safe
  • 65. 64 We could use both WCAG and APCA then? APCA WCAG 2 APCA WCAG 2 Safe Safe Non-body text Body text
  • 66. 65 We could use both WCAG and APCA then? APCA WCAG 2 APCA WCAG 2 Safe Safe Non-body text Body text
  • 67. 66 We could use both WCAG and APCA then? APCA WCAG 2 APCA WCAG 2 Safe Safe Non-body text
  • 68. 67 We could use both WCAG and APCA then? APCA WCAG 2 APCA WCAG 2 Safe Safe Body text
  • 69. 68 We could use both WCAG and APCA then? APCA WCAG 2 APCA WCAG 2 Safe http://www.myndex.com/BPCA/
  • 70. 69 We could use both WCAG and APCA then? APCA WCAG 2 APCA WCAG 2 Safe http://www.myndex.com/BPCA/
  • 85. 84 Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When use WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ] Takeaways?
  • 86. 85 Takeaways? Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When use WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ]
  • 87. 86 Takeaways? Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When use WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ]
  • 88. 87 Takeaways? Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When using WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ]
  • 89. 88 Takeaways? Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When using WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ]
  • 90. 89 Takeaways? Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When using WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ]
  • 91. 90 Takeaways? Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When using WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ]
  • 92. 91 Takeaways? Not everyone can distinguish all colours, but contrast really helps Colour contrast is (probably) more complicated than you thought When using WCAG guidance, don’t treat contrast limits as targets Be wary of some backgrounds like blue or orange Watch out for new guidance or algorithms coming in WCAG 3 Experiment with human-friendly colour spaces like HSLuv [ I still didn’t answer the question of how we can cater for everyone… ]