Create new color with RGB-Code

Hello there,
I know with the Python script you can change material/color. But is it possible to create new colors with a RGB-Code? I also know that it is possible to import geometries and they color. But that’s not what I’m looking for.

Best Regards
– Patrick