W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > April to June 2018

Index of Color Contrast Samples to address issue related to relative luminance

From: Jonathan Avila <jon.avila@levelaccess.com>
Date: Fri, 4 May 2018 03:10:03 +0000
To: WCAG <w3c-wai-gl@w3.org>
Message-ID: <BN6PR03MB25135463F55A3A13A547850BF1860@BN6PR03MB2513.namprd03.prod.outlook.com>
I found the page on the web archive that listed colors on different backgrounds that passed the contrast test.
Colors on black

Anyway I ran some sample tests (web safe colors) against black and didn't get any differences.  Since we have millions of colors and samples aren't that useful - I decided to write an automated test that would check every single color combination and then show me the ones that were different with the different relative luminance value.

The script is here

The problem is that the way I wrote it churns through so much memory that it will freeze the browser after a while of chugging through the tests.  So far I didn't see anything come up but we may need to run this a different way or use less expensive/optimized code.  So feel free to take a look and perhaps do something better.


Jonathan Avila
Chief Accessibility Officer
Level Access
703.637.8957 office

Visit us online:
Website<http://www.levelaccess.com/> | Twitter<https://twitter.com/LevelAccessA11y> | Facebook<https://www.facebook.com/LevelAccessA11y/> | LinkedIn<https://www.linkedin.com/company/level-access> | Blog<http://www.levelaccess.com/blog/>

Looking to boost your accessibility knowledge? Check out our free webinars!<https://www.levelaccess.com/compliance-resources/webinars/>

The information contained in this transmission may be attorney privileged and/or confidential information intended for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is strictly prohibited.
Received on Friday, 4 May 2018 03:10:57 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 21:08:26 UTC