Onion has yellow center. Is it safe to eat?
Sprouted onions are perfectly safe to eat. If far advanced the texture may not be ideal; yours does not sound very far advanced at all (not even green.) Considering you can eat green onions, there's nothing to fear from onion sprouts.