You can also use layers compositing for a non-destructive editing:
Simply create a new layer on top of your layer, fill it entirely with the desired color and set its Compositing Mode to "Clip to Backdrop" (right-click on the layer, Compositing Mode)
Put these 2 layers in a layer group if you have more layers in the image.
Simply create a new layer on top of your layer, fill it entirely with the desired color and set its Compositing Mode to "Clip to Backdrop" (right-click on the layer, Compositing Mode)
Put these 2 layers in a layer group if you have more layers in the image.