<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andre</title>
    <description>The latest articles on DEV Community by Andre (@andrebclark).</description>
    <link>https://dev.to/andrebclark</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F203062%2F5de6644c-bf53-4db7-877b-752078ac945c.jpeg</url>
      <title>DEV Community: Andre</title>
      <link>https://dev.to/andrebclark</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andrebclark"/>
    <language>en</language>
    <item>
      <title>Quickly Test Color Combinations for Better Contrast</title>
      <dc:creator>Andre</dc:creator>
      <pubDate>Mon, 23 Sep 2019 17:31:01 +0000</pubDate>
      <link>https://dev.to/andrebclark/quickly-test-color-combinations-for-better-contrast-1h1n</link>
      <guid>https://dev.to/andrebclark/quickly-test-color-combinations-for-better-contrast-1h1n</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Early on in my current job, I built a large number of budget sites for clients. The websites used premade templates, so there was not any room to be creative there. However, being constrained to a small list of template layouts pushed me to be more creative in a different way. The constraints led me down the rabbit hole of color schemes and themes. Throughout this process, I found several useful tools and tools on the subject of color choice in web design.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Most of the time, clients at that price range did not have a brand color, let alone a style guide. It was up to me to quickly find a color combination for their site. Picking the right color is tricky. If you are not careful, you could choose a font color that was hard to read. What I learned from these budget projects was the importance of proper contrast. The builds were repetitive, and I saw room for speeding up the process.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution
&lt;/h2&gt;

&lt;p&gt;Initially, I used the &lt;a href="https://material.io/resources/color/"&gt;material color tool&lt;/a&gt; to test color combinations. However, I found &lt;a href="https://colorable.jxnblk.com/26ffba/121212"&gt;Colorable&lt;/a&gt; to be much faster and easier to use for testing color combinations. This tool removed all of the guesswork involved in making sure my text color is legible. I found it particularly useful for creating the color theme of this blog. Be sure to star the original author's &lt;a href="https://github.com/jxnblk/colorable/"&gt;repo on GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is Good Contrast Important?
&lt;/h2&gt;

&lt;p&gt;Text with bad color contrast is hard to read, and people won't want to read it. Unreadable copy increases bounce rate. Part of the population is visually impaired. Colors that have high contrast allow your site accessible to a broader audience. This tool introduced me to the WCAG color contrast guidelines. I now keep these guidelines in mind whenever I am working with text.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's the deal with all the As?
&lt;/h2&gt;

&lt;p&gt;The AA and AAA you see next to the contrast score are part of a contrast scale outlined by the &lt;a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html"&gt;Web Content Accessibility Guidelines (WCAG)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A simplified overview of the guidelines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fail: score of 3.0 or lower&lt;/strong&gt; unreadable&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AA Large: 3.01-4.4&lt;/strong&gt; readable with larger font sizes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AA: 4.5+&lt;/strong&gt;  acceptable for the majority of the population&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AAA: 7.0+&lt;/strong&gt; almost universally accessible ideal for long-form text and articles&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do I use it?
&lt;/h2&gt;

&lt;p&gt;First thing you are likely to notice are two hexadecimal color codes. One for text, one for the background. You could manually change the hexadecimal values, but I don't recommend that approach. Below that, you have three sliders:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hue&lt;/strong&gt; uses the 360-degree color wheel to determine the color.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saturation&lt;/strong&gt; determines the intensity of your color, on a scale of 0 to 100&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lightness&lt;/strong&gt; determines how bright you're color will be. Zero is black, and 100 is pure white.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Now that you know how to use this tool. What surprisingly awesome color combinations have you discovered using tools like Colorable?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This was initially posted on &lt;a href="https://cosmicdivision.dev"&gt;Cosmic Division&lt;/a&gt;, my JAMstack Dev Blog&lt;/em&gt;&lt;/p&gt;

</description>
      <category>design</category>
      <category>ux</category>
      <category>a11y</category>
    </item>
  </channel>
</rss>
