That is indeed fascinating, but has positively no bearing on someone's off the cuff perceived opinion about readability.
Compare the job of this algorithm, having to deal with a crazy amount of possible color combo, to that of an experienced UX designer making just a dark and light theme, both thoroughly tested, and you can begin to grasp the trouble they’ve put themselves into.