Color changes of a solution of acetone and sodium hydroxide
Under basic condtions, acetone does condense with itself, first to form mesityl oxide, which is colorless, and then to form isophorone, which has a yellow color.

Both mesityl oxide and isophorone are still reactive carbonyl compounds likely to be attacked by deprotonated acetone carbanions.  That leads to bigger and more conjugated condensation products, which leads to darker and darker colors.

I found a paper which looks in some detail at the base-catalyzed polymerization of acetone, albeit with a different base and at high-temperature conditions in the gas phase, but I suspect a similar pathway happens, more slowly, at ambient temperatures in the liquid.  In the liquid, even larger molecules can likely form because they will stay solvated and can keep reacting (as opposed to in the gas phase where big molecules "crash" out of the phase as soot/gunk/etc.)

The color is likely in part from isophorone but much moreso from large polyconjugated molecules derived from isophorone containing many consecutive sp2 hybridized carbons. Such compounds are very often colored due to intense absorption of visible light.