How to convert rgb value into hex in paper ui

Okay. What did you want to happen?
How are you “passing” this hexa code?

This looks relevant