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

I found the page on the web archive that listed colors on different backgrounds that passed the contrast test.
https://web.archive.org/web/20160424135455/http://trace.wisc.edu:80/contrast-ratio-examples/index.htm<https://web.archive.org/web/20160424135455/http:/trace.wisc.edu:80/contrast-ratio-examples/index.htm>
Colors on black
https://web.archive.org/web/20160412141115/http://trace.wisc.edu:80/contrast-ratio-examples/TextSamples_6x6x6_On_000000.htm<https://web.archive.org/web/20160412141115/http:/trace.wisc.edu:80/contrast-ratio-examples/TextSamples_6x6x6_On_000000.htm>

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
https://github.com/mraccess77/mraccess77.github.io/blob/master/ContrastTest.html

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

Jonathan Avila
Chief Accessibility Officer
Level Access
jon.avila@levelaccess.com
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