fixed color calculation