How might I convert a color to the rgba format used here?

I have created a bug report for this bug: SPLIT BY BLOCKS still uses strings for color blocks