while changing to dark background , I need to set the font color to white and exactly in opposite , when the background is bright so the font color should be black
i don’t the range to divide the dark and light colors in php
my color codes are in hex format #ffffff
I found this method working for my issue.
http://www.webmasterworld.com/forum88/9769.htm