Query Report, Color of values based on value (Field type 'color')


I’ve field named ‘color’ with field type color, as it already have color codes,
I’ve made query report. in this report i want to color the cell based on its color code.

basically i am failing to set a variable in inline CSS instead of giving direct color name or code i want to pick its color code from value.

	var col = dataContext["Color"];
	//var colr = "red";
	if(columnDef.id == "Color")
			value = "<span style={'color: ${col} %'}>" + value + "</span>";