Persistable Colors - How to store in local Realm

Hi everyone - first time poster, just getting started with MongoDB. Im using Realm with SwiftUI in Xcode and I want to be able to save a colour from a colorPicker to my database, a user can pick the colour of an icon and have that shown on difference Views. However, you can’t store type Color in Realm, I’ve done some research on the topic but I can’t find a solution anywhere so I thought I’d come straight to the horses mouth. Please can someone help me understand how to do this? I would really appreciate it. Thanks in advance for your help.