454,105 Members | 1,040 Online
Need help? Post your question and get tips & solutions from a community of 454,105 IT Pros & Developers. It's quick & easy.

# Color-BackColor

 P: n/a Given BackColor of BGC = RGB(x,y,z) is there a function, procedure or rule of thumb based on the values of x,y and z which will indicate which of black or white is likely to stand out more as a ForeColor? ..... If one allows colors for ForeColor "NOT RGB(x,y,z)" seems to provide contrast for those colors which are bright or dark, but NOT grey seems to result in something pretty close to grey. That is Not RGB(128,128,128) = RGB(127,127,127) (actually as a long it slams an &HFF in the 4 hole but that's irrelevant here, I think.) I suppose there is some rule of thumb based on the value of BGC ... but I'll see if anyone has experience with this before I annoy my household with ... look at this combination ... which is clearer???? all day. -- Lyle (for e-mail refer to http://ffdba.com/contacts.htm) Nov 12 '05 #1