Text always but color only on hover in image element?

Hi! I have been trying out using the image element in Spirit theme locally on my computer. There's an option to put a caption on it with text and a background color. Then there's an option to show it "always" or "on hover". Is there a way to choose to have the caption text "always" and the background color "on hover"? I managed to do it with custom CSS, but I was trying to find a code where the color could still be chosen from upfront without having to use CSS code for the color. When I choose "always" for the caption, I cannot find a way to have the color only on hover. I hope this made sense, thank you! :slight_smile:

(Apologies for double-post, I thought I could delete the other one)