Fruit colour related to the dissolving of pectin
During ripening, pectinases are produced which break down pectin and render it soluble. Color change is also associated with fruit ripening. 

Hence the correlation.