{"id":38,"date":"2021-01-29T13:14:38","date_gmt":"2021-01-29T17:14:38","guid":{"rendered":"http:\/\/www.jfciii.com\/blog\/?p=38"},"modified":"2024-04-09T15:26:23","modified_gmt":"2024-04-09T19:26:23","slug":"your-website-needs-color-and-contrast","status":"publish","type":"post","link":"http:\/\/www.jfciii.com\/blog\/2021\/01\/29\/your-website-needs-color-and-contrast\/","title":{"rendered":"Your Website Needs Color and Contrast"},"content":{"rendered":"<p><strong>NOTE<\/strong> &#8211; I found this old blog post in my drafts, so I did some time editing it, link checking, etc., and hit publish of an old draft.<\/p>\n<h2>To Read Your Content<\/h2>\n<p>To allow people to read your content, you need to make sure to have the color contrast as high as possible. So people can read what you have written. It shouldn&#8217;t be so high that it bothers people with low vision. Were too much contrast makes it difficult for them to read.<\/p>\n<p>Putting light text on pastel or light backgrounds is not good for some people. You also have to think about the different types of color deficiencies (colorblindness). Meaning you don&#8217;t want to have red text on a green background, etc.<\/p>\n<h2>A Useful Tool<\/h2>\n<p>Below are a few different tools I use to check color contrast. The color contrast tool I use the most is Jonathan Snook\u2019s web-based \u201c<a href=\"http:\/\/snook.ca\/technical\/colour_contrast\/colour.html?fg=fff&amp;bg=000\">Colour Contrast Tool<\/a>\u201d. \u00a0It&#8217;s the tool I use to check color contrast for the development team at work or if I have chosen will work.<\/p>\n<h2>W3C Recommendation for Color Contrast<\/h2>\n<p>Here&#8217;s the W3C recommended values from the <a title=\"W3C Color Contrast checkpoint\" href=\"https:\/\/www.w3.org\/TR\/2008\/REC-WCAG20-20081211\/#visual-audio-contrast-contrast\" target=\"_blank\" rel=\"noopener\">WCAG 2.0 &#8211; 1.4.3 Contrast (Minimum) Level AA<\/a>.<\/p>\n<p>Following these guidelines ensures that foreground and background color combinations provide enough contrast. This pertains to those with color deficiencies. To pass your text and background need to have a color contrast ratio of at least 4.5:1 or higher to pass.<\/p>\n<h2>How High Should Your Color Contrast Be<\/h2>\n<p>You also have to think about how the web page or application is going to be used. Now, if it a heat index application that is likely going to be used outdoors. You have to consider most high heat index days will probably be in bright sunlight. So blaring sunny will not work well with a contrast ratio that passes b a little bit.<\/p>\n<h2>Color Deficiency or Colorblindness<\/h2>\n<p>Another tool is the \u201cColor Oracle.\u201d It&#8217;s used to simulate different types of colorblindness. They have Windows, Mac, and Linux versions created by Bernhard Jenny, Oregon State University (programming), Nathaniel Vaughn Kelso, and Stamen Design, San Francisco (ideas, testing, and icon). \u00a0The application places a color overlay for your entire main screen. You can set up different PF or function keys to turn on and off different types of colorblindness masks easily.<\/p>\n<p>Doing this allows you to check against the three main types of color blindness. About 10% of the population is colorblind. Most of them are males. The three main types of color blindness are:<\/p>\n<ul>\n<li>Deuteranopia or deuteranomaly (a form of red\/green color deficit) &#8211; 7.5% of all males.<\/li>\n<li>Protanopia or protanomaly (another form of red\/green color deficit) &#8211; 2.5% of all males.<\/li>\n<li>Tritanopia (a blue\/yellow deficit- very rare) &#8211; Less than 0.3% of women and men.<\/li>\n<\/ul>\n<h2>More Tools<\/h2>\n<p>Next is the full list of tools I would you for building websites. Your choice will depend on how you work and what&#8217;s best for you.<\/p>\n<ul>\n<li><a href=\"http:\/\/snook.ca\/technical\/colour_contrast\/colour.html?fg=fff&amp;bg=000\">Colour Contrast Tool<\/a>\u00a0&#8211; Jonathan Snook<\/li>\n<li><a title=\"Color Oracle is a colorblindness simulator for Window, Mac and Linux\" href=\"https:\/\/colororacle.org\/\" target=\"_blank\" rel=\"noopener\">Color Oracle<\/a><\/li>\n<li><a title=\"Color contrast and three types of color blindness checker\" href=\"https:\/\/www.giacomo.page\/en\/colorwheel\/wheel.php\" target=\"_blank\" rel=\"noopener\">Accessibility Color Wheel<\/a> &#8211; checks color contrast and the three different types of color blindness<\/li>\n<li><a title=\"List of 10 Color Checkers\" href=\"http:\/\/www.456bereastreet.com\/archive\/200709\/10_colour_contrast_checking_tools_to_improve_the_accessibility_of_your_design\/\" target=\"_blank\" rel=\"noopener\">10 Color Checkers<\/a> &#8211; Roger Johansson<\/li>\n<\/ul>\n<p>I hope these tools are helpful to you in checking for color contrast issues.<\/p>\n<h2>Additional Reading<\/h2>\n<p>For a more detailed look at color contrast, you need to read Todd Libby&#8217;s color contrast article called &#8220;<a href=\"https:\/\/toddl.dev\/posts\/contrasting-accessibility-with-color-contrast\/\">Contrasting Accessibility with Color Contrast<\/a>&#8220;. You should also follow him on Twitter at <a href=\"https:\/\/twitter.com\/toddlibby\">@ToddLibby<\/a>.<\/p>\n<h2>Any Recommendations<\/h2>\n<p>If you have any other tools that you use and think I should checkout, please leave a comment, and I will give them a look.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE &#8211; I found this old blog post in my drafts, so I did some time editing it, link checking, etc., and hit publish of an old draft. To Read Your Content To allow people to read your content, you &hellip; <a href=\"http:\/\/www.jfciii.com\/blog\/2021\/01\/29\/your-website-needs-color-and-contrast\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,138,139,21,25,26,44,106,87,319,20],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-22","category-accessibility","category-color","category-contrast","category-css","category-design","category-development","category-helpful-tips","category-helping-others","category-html","category-w3c","category-web-standards"],"_links":{"self":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":16,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":1297,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions\/1297"}],"wp:attachment":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}