code: function(r,g,b){
  		return {
  			server: 16 + r*36 + g*6 + b,
  			client: "rgb("+[
  				(r*42.5)|0,
  				(g*42.5)|0,
  				(b*42.5)|0,
  			].join(',')+")",
  		}
  	}
docs: ANSI escape sequence on the server. CSS rgb(...) color in the browser.