I believe that alternative synthetic pigments are used these days. I seem to remember yellow oil paint contained lead. Of course there's Prussian blue. It's funny how people freak out over simply being around these things. 25 years ago I used to be covered in oil paint. I still use lead based solder as it's amazing to work with. The reality is that unless you are constantly exposed to these things, you likely won't end up with the metals/chemicals in your system in anything like a worrying number.Artist's paints, like acrylic and oil, still contained them some time ago.
We as students learned of lead white and cadmiuns (yellow, orange and red), which are very prominent in painting. I don't know if paints still use toxic metals to this day, but we still are cautious around a few colors, since we don't know how they were produced.
Lots of people I've encountered freak out about me not washing my hands after soldering. It's occasionally something I forget to do. But the very same people won't be worried at all about the deteriorating lead mains pipe supplying water to their home! Or then there's the anti vaxers who freak out over a trace of mercury in the COVID vaccine, but they will happily chow down on tuna containing massive amounts of mercury by comparison.