Template talk:Color contrast ratio

Wrong ratio?
I noticed some values do not match with the ones provided by the Colour Contrast Check: Helder 12:31, 6 March 2013 (UTC)


 * Note the values provided are the reciprocal of those given by the other tool. That's because the other tool reverses the order of the parameters if the foreground color is lighter than the background color, while this template was designed (and is documented) to provide the correct ratio (less than 1). This is to provide more flexibility for the user, who may want to filter dark-on-light contrasts differently than light-on-dark for hardware or environmental differences. In practice, it just means that you have to check that the value is inside a range instead of being less than a specific value (e.g. 0.25<=x<=4.0 instead of x<=4.0). —&#91;  Alan M 1  (talk) &#93;— 17:59, 14 March 2013 (UTC)