Extract color from hidden column in datatable

Is it possible to set the background color of a cell with the value contained in a hidden column? I tried this, but it didn’t work (there is a column in the datatable called “bg_color” that contains hex color values):

style_data_conditional = [
{
“if”:{
“column_id”:“foo”
}, “background_color”:"{bg_color}"
}