Make the image darker in a image manipulation tool.
Put the text in a <div> on top of a <div> containing the image as a background image and make the first <div> to have a transparent background this way background: rgba(0,0,0,0.50);
But is there a CSS and/or JS hack to effect the darkness of a background image directly?
By the way, I don’t mind trying something experimental in this case.
OK, first order of business. You do realize that an image and a background-image are not the same, correct? One is in and affects the document flow, and the other is purely decorative.
I just say that because details matter, and the approach needed to solve the same “end result” are totally different. To darken a background image, you overlay a gradient over top of it.