I\'ve tried using the following link to change the color of a SwitchCompat:
How to change the color of a SwitchCompat
Notice the low constrast in my switch:<
If you want a more switches in multiple colors in one Activity, you can use this solution (based on theme by @Konifar):
where @color/custom is color of thumb when switch is activated.
@color/custom
Then apply this theme to your SwitchCompat this way: