How to avoid roots turning out too light?

Use a neutral shade in the same level as the ends and apply to the root area to soften the vibrancy.