calc top and bottom color