W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > July to September 2003

Equation for determining color "closeness"

From: Wendy A Chisholm <wendy@w3.org>
Date: Fri, 29 Aug 2003 18:38:13 -0400
Message-Id: <5.2.0.9.2.20030829183134.01a0b138@localhost>
To: w3c-wai-gl@w3.org

On page 93 in Chapter 4 (Creating Accessible Content) of "Constructing 
Accessible Web Sites" [1], Jim Thatcher writes, "It is clear that good 
contrast occurs when two colors are close to complementary. 'Closeness' can 
be calculated as if the R G B colors are points in the three-dimensional space:
Distance = ( (R1-R2) ^2 + (G1-G2) ^2 + (B1-B2) ^2) ^1/2
"

[1] http://www.jimthatcher.com/book.htm

-- 
wendy a chisholm
world wide web consortium
web accessibility initiative
http://www.w3.org/WAI/
/-- 
Received on Friday, 29 August 2003 18:38:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:25 GMT