Brightness Calculator Javascript Demo

Read the article
Enter colors e.g. "#88ff88" or "light green" or "black" etc. Notice how the resulting text is always a readable color.