Alex -
For reproducing purposes, what color scheme are you using? What level is the TOC set to?
The color schemes define 'chaptertoc' and 'sectiontoc' as well as 'active' variants of both of those. (Despite their names, they are not necessarily used for those elements - think of them as primary division color and secondary division color.) That looks like the active color is the same as one of the plain ones, which seems like a bug in that color scheme.
But I do agree that many of the existing color schemes end up a TOC that is hard to read. When too many colors are in play for those 4 different values, or if the colors used for 'active' TOC elements don't noticeably stand out, the display gets confusing. Especially if the base colors are distinct and bold - like red and blue - it gets really hard to find an active color that stands out without inducing eye bleed.
My book uses the same palate for everything in the TOC with the brightest tint used for the active item.
Maybe it would be good to simplify color usage in the TOC a bit.
Andrew Scholer (he/him/his)
Computer Science Instructor/Program Chair
Chemeketa Community College