Skip to content

24 ways to impress your friends

Vote down?

Brian Suda

Mike Kaply, there are a few equations for contrast with luminance, this is the W3C definition, which is very similar

http://www.w3.org/TR/2006/WD-WCAG20-20060427/appendixA.html#luminosity-contrastdef

They also have a more complex equation which I wanted to avoid in this quick article.

http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-TECHS/G145.html

Testing the contrast by luminance is yet another tool to have in your tool box. I don’t think it really matters which equation you choose, there will always be issues with edge-cases, it is more important that you are using something.