Given the heights of the bars relative to the optimum, a hex value for the worst case and another one for the best case, CSS computes the bar backgrounds.