Coloring components with RGB programmatically NOT CSS

I’m new to Vaadin and I am trying to background color a component eg. Panel or a table cell of some Layout, but I want to do it using RGB values and do it programatically/dinamically and not through CSS.

Something like

Label label = new Label(“Some text”);

Many thanks