Report question

Question: Given a background color, how to get a foreground color that makes it readable on that background color?