Clamp colors to avoid overflow