Change slider color in both online and local experiment

Hi all.

I have a list named rgbColor= [100,100,100] and I want to use this RGB value as the color of my slider in both online and local experiments. Does someone know how to set the slider color in python and JS?