So i’m trying to convert colours from the unnamed variant into the named style on button click. When I get the layers fills it gives back a weird rgb number made out of decimals. Is there a way to convert it to a standard RGB number?
Multiply the R, G and B by 255 (and round them if preferred). Leave the A value as a number between 0 and 1. You could then use the result in e.g. a CSS style.