How to save color picker value with values from input fields

Hello All.
A have DB (On-device Storage) where I want to store value name, detail and color (ID from Color picker).
But I dont know how…
Thanks for advice
color

Add new Page variable as Color code type. In Color picker logic assign this variable to formula: self.selectedColor.color. Upon Save - store this variable to storage parameter (type of Color code).