The problem here is not the iMac or macOS, per se. The issue is that browsers all tend to do color management differently. Especially if content is untagged on the web, which a lot of it is. So if they aren't telling CoreGraphics what's going on correctly, it will not look right. These big monolith rendering engines are especially prone to having color management issues because they take on so much of the color management themselves rather than distributing it to the platform like they probably should. But they have been getting better over time.
In this example, you may not actually be playing the same video on all three browsers. YouTube wants to use VP9 which Safari doesn't support, but Chrome and Firefox do. So Safari is playing H.264, while Chrome/Firefox are playing VP9. There could be some differences there, especially since there could be differences in the codec versions between Chrome/Firefox.
One last comment is that I would caution against using a single website for a test. Especially one run by a company that provides their own browser. Google in the past has been called out multiple times for breaking other browsers on their services. I'll leave other folks to decide if it is a conspiracy or not, but I simply don't trust Google services as a way to "test" color management of other browsers.
That said, some notes I do have:
- Safari looks the most correct to me in this instance, considering there is studio lighting. Firefox looks completely wrong, oversaturated. Chrome looks like the gamma is too high, as if it's assuming a 2.6 gamma when it maybe shouldn't. But again, since this is video with two different codecs being used for playback, there's more variables at play. It could be how the VP9 was encoded (YouTube does this on the back end if you upload H.264 for example), it could be the VP9 codec itself doing something weird, etc.
- I played with these browsers and a simple color management test: https://cameratico.com/tools/web-browser-color-management-test/. Safari and Chrome both demonstrated that they handle color management "correctly enough" to pass the test. Firefox 74 failed in that it doesn't support ICC v4 by default, and it treats untagged images/CSS as "device gamut" values, which is wrong.
The simple color management test explains the really red look to Marques in the Firefox window. The stark gamma difference between Chrome and Safari I think is due to the H.264 vs VP9 differences, to be honest. If I compare the two using a site like:
https://webkit.org/blog-files/color-gamut/comparison.html, then the two look very similar. Nothing sticks out that explains why the video is so different.
EDIT: Yes, I don't have the iMac, but I do have a DCI-P3 display that I use day-to-day (which I used for this comparison), and I had a 5K iMac for 4-5 years. Color management is also something I obsess over a little bit as part of my photography hobby.