Accessing sass theme's colors variable

i understand how to change theme colors and use them in a tag such as color=“primary” but how can i access the colors through sass or another way?