Coloring components with RGB programmatically NOT CSS

Hi,
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”);
label.setColor(2,3,4);

Many thanks