Use rgb values to match colors before commit ad116e. Taken from qcolor_p.cpp.