If you want to use two different colors in the same table cell, try assigning a CSS gradient.
background: linear-gradient(to bottom, #ffffff 71%, #50aa50 72%);
/* very little transition with 1% difference */
You can write a jQuery function that will color these cells automatically:
$('selector').each(function() {
var v = 100 - ($(this).text() / 1000); // since we're coloring top-to-bottom
$(this).css('background','linear-gradient(to bottom ,#ffffff '+v+'%, #50aa50 '+(v+1)+'%)');
});
(Current versions of jQuery should handle browser prefixing for this attribute as well, when necessary.)