In this paper we propose a new rule to allocate risk capital to portfolios or divisions within a firm. Specifically, we determine the capital allocation that minimizes the excesses of sets of portfolios in a lexicographical sense. The excess of a set of portfolios is defined as the expected loss of that set of portfolios in excess of the amount of risk capital allocated to them. The underlying idea is that large excesses are undesirable, and therefore the goal is to determine the allocation for which the largest excess is as small as possible. We show that this allocation rule yields a unique allocation, and that it satisfies some desirable properties. We also show that the allocation can be determined by solving a series of linear programming problems.