Hey Bon!
I think this should work. I'd recommend using a JS transformer + .filter() actually, instead of Query JSON with SQL. Then, you can use {{transformer.value}}
in your table.
Quick note. If the color_hex column is a custom column, it won't show up in table.selectedRow.data. Custom column data might show up in table.columnMappers, and then you could use the selectedRow.index to grab the right value from columnMappers (lmk if you need help here!)