different child theme for subdomain

I’d encourage you to take one step further back and avoid using URLs to determine theme at all. (And FYI, what you’re describing are subfolders, not subdomains which would be red.example.com.)

The reason not to do this is to avoid duplicate content issues with search engines. Technically, you could work around them, but it can also be confusing to visitors who reasonably expect different URLs to load different content.

Instead, I’d encourage you to look into a “theme switcher” plugin. I’m not familiar with any of them but here are some to get you started:

If it were me, I’d carefully look at using localstorage to conditionally load a specific “skin” stylesheet that only includes the color changes it seems like you want.