The theme-color meta attribute always used the site’s default color scheme instead of the scheme of the current user theme. We’ve had this bug since the inception of user-selectable themes. Here is a fix for it:
https://github.com/discourse/discourse/pull/6384
@gkln thanks for reporting this ancient bug!