Somewhat is a synonym of relatively.
As adverbs the difference between Somewhat and relatively
is that
Somewhat is to a limited extent or degree while
relatively is proportionally, in relation to some larger scale thing.
As a pronoun Somewhat
is (archaic) something.
As a noun Somewhat
is more or less; a certain quantity or degree; a part, more or less; something.