Colorize CSS colors so that the foreground is always readable