How do I invert RGB hex values by contrast in PHP? | Hacker News Reader