Can a color link to another color?

I’m new to figma and don’t find anything about this problem:
If I make a rectangle with a fill and make it a component, then child object inherits the parent objects properties.
But what if I want to a make a color palette from a main color and when the main color is changed, then the others update accordingly (like ±10, ±20,… saturation).
So can I achive this behavior or are there plugins for this?
Thanks for the ansvers!