ColorComponent calc main color