WCAG 2.1 color contrast analyzer

During June 2018, W3C WAI recommended the new accessibility standard Web Content Accessibility Guidelines 2.1 i.e. WCAG 2.1. Along with many new success criteria specific success criterion is added that speaks about color contrast for non-text content. While the existing 1.4.3 contrast (minimum) and 1.4.6 contrast (Enhanced) still exist.

1.4.11 Non-text contrast

The success criteria says

the following have a contrast ratio of at least 3:1 against adjacent color(s):

User Interface Components

Visual information required to identify user interface components and states, except for inactive components or where the appearance of the component is determined by the user agent and not modified by the author;

Graphical Objects

Parts of graphics required to understand the content, except when a particular presentation of graphics is essential to the information being conveyed.

Read more about 1.4.11 non-text contrast.

Most of the color contrast testing tools still show the WCAG 2.0 success criteria only. The new color contrast analyzer from The Paciello group can identify the contrast between the non-text content and their background and analyze the conformance including the new WCAG 2.1 success criteria.

About the WCAG 2.1 Color Contrast Analyzer

The new WCAG 2.1 color contrast analyzer was released late 2018 to match with the new success criterion 1.4.11 Non-text contrast. The tool was rebuilt from the scratch using electron. Interestingly most of the features of the tool are accessible by screen reader and keyboard. More keyboard access is added in the future release I believe. Since the user interface is built with HTML elements, using the tool is usable and accessible compared with the old version of CCA.

Screenshot of color contrast analyzer showing the result as 6.71: 1 with foreground color #801243 and background color #d2d2d2
Screenshot of color contrast analyzer with color names foreground green and background red selected and contrast ratio detected as 1.3: 1. Failed for all the 3 success criteria.

Features of WCAG 2.1 Color Contrast Analyzer

The most important feature I believe is that allows the users to pick the foreground color and background color from the existing web page, design or any other digital format and find the contrast between them. This feature allows to identify the accurate contrast for existing UI. The other interesting features of the validator are

  1. Option to provide the foreground and background color values in any of the following formats to identify the contrasts in various WCAG 2.1 success criteria.
    • Hex: #FFF, #FFFFFF, #FFFA, #FFFFFFAA
    • Names: blue, grey, orange, …
    • RGB: rgb(200,200,200), rgba(200,60,60,0.3)
    • HSL: hsl(360,100%,50%), hsla(360,60%,50%,0.4)
  2. Alpha transparency support for foreground colors.
  3. Color blindness simulator.
  4. Option to switch foreground and background colors.
  5. Support to WCAG 2.1 conformance checks.
  6. Available for both Windows and Mac OS.

Where can I download WCAG 2.1 Color contrast analyzer?

The new CCA tool is developed by The Paciello Group. Additional information of the tool can be found at the Color contrast analyzer page. The code and other information including Mac and Windows versions are at download CCA page.

Download and run the exe file to install. Once the tool is installed it will create an icon on desktop to start using it.

0 replies on “WCAG 2.1 color contrast analyzer”

View Other Blogs

Contact Us

Maxability Pvt Ltd Flat 360,
Block D2 SLS Signature Appartments,
Kaverappa Layout, Kadubeesanahalli,
Bangalore - 560103.

6366496664