Blindly setting background in pullup.css is a little dumb... How to improve that without going overboard?

The current generated css file looks like this:

.vid-1-tid-1 { background: #ff0000 }
.vid-1-tid-2 { background: #00ff00 }

The colors depend on a color field set on each term.