I think it is mentioned there: https://int10h.org/blog/2015/04/cga-in-1024-colors-new-mode-...
Although while working on this one, I couldn't help noticing that the IBM CGA (5153) monitor wasn't showing things quite as expected. That led me down another rabbit hole: https://int10h.org/blog/2022/06/ibm-5153-color-true-cga-pale...