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 to costumize the color of track.you can use this solution.
track selector.xml
where checked_color and unchecked_color are color of your choices.
styles.xml
layout file