This repository has been archived by the owner on Mar 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathcontrast.html
269 lines (247 loc) · 16.4 KB
/
contrast.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Colors with Good Contrast - Web Accessibility Perspectives Videos</title>
<meta name="description" content="Short video about colors with good contrast for web accessibility - what is it, who depends on it, and what needs to happen to make it work.">
<!-- Twitter Card data -->
<meta name="twitter:card" content="Short video about colors with good contrast for web accessibility - what is it, who depends on it, and what needs to happen to make it work.">
<meta name="twitter:site" content="@w3c_wai">
<meta name="twitter:title" content="Colors with Good Contrast - Web Accessibility Perspectives Videos">
<meta name="twitter:image" content="https://w3.org/WAI/perspectives/img/contrast.jpg">
<!-- Open Graph data -->
<meta property="og:title" content="Colors with Good Contrast - Web Accessibility Perspectives Videos" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://w3.org/WAI/perspectives/contrast.html" />
<meta property="og:image" content="https://w3.org/WAI/perspectives/img/contrast.jpg" />
<meta property="og:description" content="Short video about colors with good contrast for web accessibility - what is it, who depends on it, and what needs to happen to make it work." />
<meta property="og:site_name" content="W3C Web Accessibility Initiative (WAI)" />
<meta name="viewport" content="width=device-width">
<script src="lib/modernizr.custom.js"></script>
<link href="https://www.w3.org/WAI/wai-main.css" rel="stylesheet" type="text/css" />
<link href="wai-style-changes.css" rel="stylesheet" type="text/css" />
<!--[if IE 7]><link rel="stylesheet" href="/WAI/ie-old.css" type="text/css" media="all" /><![endif]-->
<link href="lib/ableplayer.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<header>
<div id="controls"><ul>
<li><a href="#skip"><img src="https://www.w3.org/Icons/downinpage.png" alt="" /> Skip to Content</a></li>
<li> | <a href="/WAI/changedesign">Change text size or colors</a></li>
</ul></div>
<div id="masthead"><p id="logos"><a href="/" title="W3C Home"><img alt="W3C logo" src="https://www.w3.org/Icons/w3c_home" /></a><a href="/WAI/" title="WAI Home"><img alt="Web Accessibility initiative" src="https://www.w3.org/WAI/images/wai-temp" /></a></p></div>
<div id="tagline"><p>WAI: Strategies, guidelines, resources to make the Web accessible to people with disabilities</p></div>
</header>
<nav id="nav">
<h2>Site Navigation</h2>
<p id="w3cnav"><a href="/">W3C Home</a></p>
<p id="subhomenav"><a href="/WAI/">Web Accessibility Initiative (WAI) Home</a></p>
<ol id="nav1">
<li class="current-nav"><a href="../gettingstarted">Getting Started</a>
<ul class="anno">
<li class="nav-head">Accessibility Basics
<ul class="anno">
<li class="external"><a href="https://www.w3.org/standards/webdesign/accessibility">Accessibility - W3C <img src="//www.w3.org/Icons/tr.png" alt="External"></a>
</li>
<li><a href="../intro/accessibility">Introduction to Accessibility</a>
</li>
<li><a href="../intro/components.php">Essential Components</a>
</li>
<li><a href="../bcase/Overview">Business Case</a>
</li>
</ul>
</li>
<li class="nav-head">Videos
<ul class="anno">
<li><a href="../videos/standards-and-benefits">Intro Accessibility & Standards</a>
</li>
<li><a href="../perspectives">Perspectives Videos</a>
<ul>
<li><a href="keyboard.html">Keyboard</a></li>
<li id="current-node" class="current-nav"><span class="label"><span id="current-icon">»</span>Contrast</span></li>
<li><a href="layout.html">Layout</a></li>
<li><a href="speech.html">Speech</a></li>
<li><a href="controls.html">Controls</a></li>
<li><a href="captions.html">Captions</a></li>
<li><a href="customizable.html">Customizable</a></li>
<li><a href="voice.html">Voice</a></li>
<li><a href="understandable.html">Understandable</a></li>
<li><a href="notifications.html">Notifications</a></li>
</ul>
</li>
</ul>
</li>
<li class="nav-head">Accessibility Tips
<ul class="anno">
<li><a href="../gettingstarted/tips/index">Tips for Getting Started</a>
</li>
</ul>
</li>
<li class="nav-head">Using the Web
<ul class="anno">
<li><a href="../users/browsing">Better Web Browsing Tips</span>
</li>
<li><a href="inaccessible">Contact Inaccessible Websites</a>
</li>
</ul>
</li>
</ul>
</li>
<li><a href="../users">Designing for Inclusion</a>
</li>
<li><a href="../guid-tech">Guidelines & Techniques</a>
</li>
<li><a href="../managing">Planning & Implementing</a>
</li>
<li><a href="../eval/Overview">Evaluating Accessibility</a>
</li>
<li><a href="../train">Tutorials and Presentations</a>
</li>
<li><a href="../about-links">Getting Involved with WAI</a>
</li>
</ol>
<div id="nav-static">
<div class="nav-discover">
<p><a href="/WAI/yourWAI"><strong><u>Discover new resources</u></strong> for people with disabilities, policy makers, managers, and you!</a></p>
</div>
<p class="translations"><a href="/WAI/wai-translations"><img src="https://www.w3.org/WAI/images/translations-med-1" alt="characters from different languages" /> Translations</a></p>
</div>
</nav>
<main id="main" role="main">
<div class="main-inner">
<div id="skipwrapper"><a id="skip" name="skip">-</a></div>
<h1 class="attach_permalink"><span class="subhead">Web Accessibility Perspectives:</span> Colors with Good Contrast</h1>
<h2 id="intro" class="no-display">Introduction</h2>
<p>Web accessibility is essential for people with disabilities and useful for all. Learn about the impact of accessibility and the benefits for everyone in a variety of situations.</p>
<h2 id="film" class="no-display">Video on Colors with Good Contrast</h2>
<div class="video-container" data-video-type="">
<video preload="metadata" data-youtube-id="Hui87z2Vx8o">
<track src="cc/contrast-en.vtt" label="Captions" kind="captions" srclang="en" default="" /><!--
<track src="cc/contrast_desc-en.vtt" label="Descriptions" kind="descriptions" srclang="en" /> -->
</video>
</div>
<div class="video-container" data-video-type="audio-described">
<video preload="metadata" data-youtube-id="a9kNUv6N8Rk">
<track src="cc/contrast_ad-en.vtt" label="Captions" kind="captions" srclang="en" default="" />
<track src="cc/contrast_ad_desc-en.vtt" label="Descriptions" kind="descriptions" srclang="en" />
</video>
</div>
<p><button id="audio_description_button"> <img src="img/audio-description.svg" alt=""><span>Enable Audio Description</span></button></p>
<p>[ <a href="keyboard.html"><strong>Previous:</strong> Keyboard Compatibility</a> | <a href="Overview.html"><strong>Overview</strong></a> | <a href="layout.html"><strong>Next:</strong> Clear Layout and Design</a> ]</p>
<h2 id="what">What is "Colors with Good Contrast"?</h2>
<p>Colors must have sufficient contrast between text color and its background (technically called <em>luminosity contrast ratio</em>). This includes text on images, icons, and buttons. Also colors used to convey information on diagrams, maps, and other types of images must be distinguishable.</p>
<h2 id="who">Who depends on this feature?</h2>
<ul>
<li>People with low contrast sensitivity, which is common in older people.</li>
<li>People with color blindness who cannot distinguish between certain colors.</li>
</ul>
<h2 id="others">What are the additional benefits?</h2>
<ul>
<li>Content works in different lighting conditions, such as sunlight and glare.</li>
<li>Content is easier to read by everyone, including those who do not have specific visual conditions.</li>
</ul>
<h2 id="action">What needs to happen for this to work?</h2>
<p>Select text and background colors that provide sufficient contrast. There are tools to help check and select appropriate color combinations. This is ideally done during the early design stage and the selection of color palettes. While some people need high contrast, some people are sensitive to brightness and need to <a href="customizable.html">change the colors</a>.</p>
<h2 id="resources">Learn more</h2>
<ul>
<li><strong>Accessibility Principle:</strong>
<ul>
<li><a href="https://www.w3.org/WAI/intro/people-use-web/principles#distinguishable">Content is easier to see and hear</a></li>
</ul>
</li>
<li><strong>Getting Started:</strong>
<ul>
<li><a href="https://www.w3.org/WAI/gettingstarted/tips/designing.html#provide-sufficient-contrast-between-foreground-and-background">Provide sufficient contrast between foreground and background</a></li>
</ul>
</li>
<li><strong>Easy Check:</strong>
<ul>
<li><a href="https://www.w3.org/WAI/eval/preliminary.html#contrast">Contrast ratio ("color contrast")</a></li>
</ul>
</li>
<li><strong>User Story:</strong>
<ul>
<li><a href="https://www.w3.org/WAI/intro/people-use-web/stories.html#shopper">Mr. Lee, Online shopper with color blindness</a></li>
<li><a href="https://www.w3.org/WAI/intro/people-use-web/stories.html#retiree">Mr. Yunus, Retiree with low vision, hand tremor, and mild short-term memory loss</a></li>
</ul>
</li>
<li><strong>User Needs:</strong>
<ul>
<li><a href="http://www.w3.org/TR/low-vision-needs/"> Accessibility Requirements for People with Low Vision </a></li>
</ul>
</li>
<li><strong>Web Content Accessibility Guidelines (<a href="https://www.w3.org/WAI/intro/wcag">WCAG Overview</a>):</strong>
<ul>
<li><a href="https://www.w3.org/WAI/WCAG20/quickref/?tags=contrast">Success Criteria relating to "contrast"</a></li>
</ul>
</li>
<li><strong>Mobile Applicability:</strong>
<ul>
<li><a href="https://www.w3.org/WAI/mobile/experiences.html#color">Information conveyed solely with color</a></li>
</ul>
</li>
</ul>
<section aria-labelledby="more">
<h2 id="more">Perspectives Videos</h2>
<ul class="video-listing">
<li><a href="keyboard.html"><span class="video-thumb"><img src="img/thumbnails/keyboard.jpg" alt=""></span><span> Keyboard Compatibility</span></a></li>
<li class="current"><span class="video-thumb" aria-label="Current: "><img src="img/thumbnails/contrast.jpg" alt=""></span><span> Colors with Good Contrast</span></li>
<li><a href="layout.html"><span class="video-thumb"><img src="img/thumbnails/layout.jpg" alt=""></span><span> Clear Layout and Design</span></a></li>
<li><a href="speech.html"><span class="video-thumb"><img src="img/thumbnails/speech.jpg" alt=""></span><span> Text to Speech</span></a></li>
<li><a href="controls.html"><span class="video-thumb"><img src="img/thumbnails/controls.jpg" alt=""></span><span> Large Links, Buttons, and Controls</span></a></li>
<li><a href="captions.html"><span class="video-thumb"><img src="img/thumbnails/captions.jpg" alt=""></span><span> Video Captions</span></a></li>
<li><a href="customizable.html"><span class="video-thumb"><img src="img/thumbnails/customizable.jpg" alt=""></span><span> Customizable Text</span></a></li>
<li><a href="voice.html"><span class="video-thumb"><img src="img/thumbnails/voice.jpg" alt=""></span><span> Voice Recognition</span></a></li>
<li><a href="understandable.html"><span class="video-thumb"><img src="img/thumbnails/understandable.jpg" alt=""></span><span> Understandable Content</span></a></li>
<li><a href="notifications.html"><span class="video-thumb"><img src="img/thumbnails/notifications.jpg" alt=""></span><span> Notifications and Feedback</span></a></li>
</ul>
</section>
<aside class="side-box contribute" role="complementary">
<h2 class="heading">Help improve this page</h2>
<p>Please share your ideas, suggestions, or comments via email to the publicly-archived list <a href="mailto:[email protected]?subject=%5bPerspectives%20-%20Contrast%5d">[email protected]</a> or via GitHub.</p>
<div class="buttons">
<a class="btn" title="Publicly archived list" href="mailto:[email protected]?subject=%5bPerspectives%20-%20Contrast%5d">E-mail</a>
<a class="btn" href="https://github.com/w3c/wai-showcase-examples/edit/gh-pages/contrast.html">Fork & edit on GitHub</a>
<a class="btn" href="https://github.com/w3c/wai-showcase-examples/issues/new?title=%5bPerspectives%20-%20Contrast%5d">New GitHub Issue</a>
</div>
</aside>
</div>
</main>
<footer id="footer" role="contentinfo">
<div>
<h2><strong>Document Information</strong></h2>
<p><strong>Status:</strong> Updated 15 September 2016. <br /><strong>Editor and project lead:</strong> <a href="https://www.w3.org/People/shadi">Shadi Abou-Zahra</a>. Developed by the <a href="https://www.w3.org/WAI/EO/">Education and Outreach Working Group (EOWG)</a> with support from the <a href="https://www.w3.org/WAI/DEV/">WAI-DEV project</a>, co-funded by the European Commission. <a href="acknowledgements.html">Acknowledgements</a>.</p>
<div class="footer-nav">
<p>[<a href="https://www.w3.org/WAI/sitemap.html">WAI Site Map</a>] [<a href="https://www.w3.org/WAI/sitehelp.html">Help with WAI Website</a>] [<a href="https://www.w3.org/WAI/search.php">Search</a>] [<a href="/WAI/contacts">Contacting WAI</a>] <br /><strong>Feedback welcome to <a href="mailto:[email protected]">[email protected]</a></strong> (a publicly archived list) or <a href="mailto:[email protected]">[email protected]</a> (a WAI staff-only list).</p>
</div>
<div class="copyrightcc">
<p>Copyright © 2016 W3C <sup>®</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>) <a href="/Consortium/Legal/ipr-notice">Usage policies apply</a>. <br clear="none" /><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="float: left; border: 0; margin: 5px" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>. <br clear="none" /><strong>For attribution requirements, see the <a href="http://www.w3.org/WAI/about/usingWAImaterial#cc">"Creative Commons License (CC)" section of Using WAI Material</a>.</strong></p>
</div>
</div>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDomains", ["*.www.w3.org/WAI"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//www.w3.org/analytics/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 328]);
var d=document, g=d.createElement('script'),
s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js';
s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//www.w3.org/analytics/piwik/piwik.php?idsite=328"
style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</footer>
<script src="lib/jquery-1.12.3.min.js"></script>
<script src="lib/js.cookie.js"></script>
<script src="lib/ableplayer.min.js"></script>
<script src="lib/sharebox.js"></script>
<script src="lib/audio_desc_button.js"></script>
</body>
</html>