{"id":140,"date":"2019-04-08T16:01:01","date_gmt":"2019-04-08T20:01:01","guid":{"rendered":"http:\/\/sites.nd.edu\/ndstories\/?p=140"},"modified":"2019-04-16T11:23:40","modified_gmt":"2019-04-16T15:23:40","slug":"graphics-guidebook-color-contrast-accessibility","status":"publish","type":"post","link":"https:\/\/sites.nd.edu\/ndstories\/2019\/04\/08\/graphics-guidebook-color-contrast-accessibility\/","title":{"rendered":"Graphics Guidebook: Color Contrast Accessibility"},"content":{"rendered":"<p>Have you ever seen an image on Twitter that makes you cringe? Something where you might even say out loud, \u201coh, my eyes!\u201d Normally these images include bright, or even neon colors, that clash with each other. Frequently, they include text on a plain background that is very difficult to read.<\/p>\n<p>In a <a href=\"http:\/\/sites.nd.edu\/ndstories\/2019\/01\/25\/social-media-accessibility-alt-text-and-closed-captioning\/\">recent blog post<\/a>, I discussed why we should all be using Closed Captioning and Alternative Text on videos and images that we post on social media. While both of those are crucial as we strive to be more accessible, we must also take into account the color contrast in images that we create.<\/p>\n<p>This can be a problem both on- and offline as posters hung on a wall can have the same impact as an image included in a tweet, so it\u2019s best to understand why color contrast can be an issue for people.<\/p>\n<p>Poor color contrast causes eye strain for non-impaired users, but for those who have low vision, low contrast vision or color blindness the colors it can cause them to not even see the image at all. And because people who are color blind are able to see things that aren\u2019t red, green or blue, they aren\u2019t going to be using screen readers where they\u2019ll be told what an image says.<\/p>\n<p>Essentially, you\u2019ve just erased the functionality of that image for 8% of the male population and 0.5% of the female population in the world.<\/p>\n<p><em>So, how can we make sure that our images are up to the visual standards that make sure our content can be read by everyone?<\/em><\/p>\n<p>At Notre Dame, we strive to adhere to the <a href=\"https:\/\/www.w3.org\/WAI\/standards-guidelines\/#wcag\">Web Content Accessibility Guidelines (WCAG)<\/a>. One such guideline has to do with color contrast on graphics. These color contrast ratio requirements apply to text and graphics that are essential for understanding the content or functionality.<\/p>\n<p>And every graphic that is included in a social media post should reach the threshold of \u201cessential for understanding the content or functionality\u201d (otherwise there\u2019s no point to include it, but that\u2019s another blog post), which means that all of them should adhere to the WCAG guidelines.<\/p>\n<p>At a minimum, the contrast ratio should be 4.5:1 (or 3:1 for text that is 18 point or larger, or Bold 14 point or larger).<\/p>\n<p>Web Accessibility In Mind (WebAIM) has a <a href=\"https:\/\/webaim.org\/resources\/contrastchecker\/\">Color Contrast Checker<\/a> available for free that you can use when creating graphics to make sure they\u2019re complaint. Even if you don\u2019t understand the ratio, this tool boils it down to a Pass or Fail grade.<\/p>\n<p>Here are two examples, side by side, the left fails, while the right passes. In each, I chose two of the brand colors for Notre Dame* and then dragged the foreground and background colors darker until they reached the appropriate contrast ratio.<\/p>\n<p><a href=\"http:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/ColorContrast2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-146 size-large\" src=\"http:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/ColorContrast2-1024x477.png\" alt=\"Color Contrast checker showing a failing and then passing grade on text on a solid background\" width=\"660\" height=\"307\" srcset=\"https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/ColorContrast2-1024x477.png 1024w, https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/ColorContrast2-300x140.png 300w, https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/ColorContrast2-768x358.png 768w, https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/ColorContrast2.png 1440w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><a href=\"http:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/Color-Contrast1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-147 size-large\" src=\"http:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/Color-Contrast1-1024x477.png\" alt=\"Color Contrast checker showing a failing and then passing grade on text on a solid background\" width=\"660\" height=\"307\" srcset=\"https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/Color-Contrast1-1024x477.png 1024w, https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/Color-Contrast1-300x140.png 300w, https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/Color-Contrast1-768x358.png 768w, https:\/\/sites.nd.edu\/ndstories\/files\/2019\/04\/Color-Contrast1.png 1440w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you are not color deficient or low vision, you might not have a problem seeing the graphic that fails the test, but we have to remember that we don\u2019t want to exclude the 4.5% of the total population that deals with color contrast deficiencies.<\/p>\n<p>And it\u2019s also important to look at color contrast when you\u2019re using text on top of an image as there may be portions of the image where the text is not contrasted enough or blends into the background.<\/p>\n<p>We probably run into this problem more often than not on Stories as they\u2019re often created on the go or without the benefit of sitting down and being able to test the color contrast. Fixing this can be as simple as adding a background color to the text box, but that doesn\u2019t always work with the aesthetic you\u2019re seeking. This is where an Instagram \u201chack\u201d comes in handy \u2013 if you\u2019d like to add a transparent colored overlay on top of an image you\u2019ve taken in a Story, choose the pen tool, then the highlighter (second pen option) and choose a color then hold down on the screen for a few seconds. Ta-da! Now you can type text with a static color to contrast. Even adding a very light gray transparent background on top of an image that is barely noticeable can help exponentially with color contrast.<\/p>\n<p>*This is a good reminder to check the color contrast even if colors are part of your brand standards (the two I chose are part of our secondary and tertiary colors) as they might not have been intended to use in this particular combination<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever seen an image on Twitter that makes you cringe? Something where you might even say out loud, \u201coh, my eyes!\u201d Normally these images include bright, or even neon colors, that clash with each other. Frequently, they include text on a plain background that is very difficult to read. In a recent blog &hellip; <a href=\"https:\/\/sites.nd.edu\/ndstories\/2019\/04\/08\/graphics-guidebook-color-contrast-accessibility\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Graphics Guidebook: Color Contrast Accessibility<\/span><\/a><\/p>\n","protected":false},"author":2314,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-social-media"],"_links":{"self":[{"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/users\/2314"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":6,"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/posts\/140\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.nd.edu\/ndstories\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}