If the label was using a specific element of HTML, which it doesn't, you could use
import IPython import ipywidgets as widgets IPython.display.HTML('<style> widget-label { color: red; } </style>') myLabel= widgets.Label(value = 'Some Label') ; myLabel
However widget-label is not an element but a CSS class in this case, therefore the above code doesn't work. Hence, the option given by @AlanDyke is the next best one, either using the class it already has.
import IPython import ipywidgets as widgets IPython.display.HTML('<style> .widget-label { color: red; } </style>') myLabel= widgets.Label(value = 'Some Label') myLabel
Note: In google-colab you must replace IPython.display.HTML ... with display(HTML('<style> .widget-label { color: red; } </style>')).
Alternatively, creating a new one and attaching it.
import IPython import ipywidgets as widgets #IPython.display.HTML('<style> .widget-label, .redlabel { color: red; } </style>') IPython.display.HTML('<style> .redlabel { color: red; } </style>') myLabel= widgets.Label(value = 'Some Label') ; myLabel.add_class('redlabel'); myLabel

For similar question see https://stackoverflow.com/a/70228454/4752223