Fixed background color calculation.