A yellow tang fish is a consumer.
Consumers get energy by eating other organisms. Yellow tangs are herbivores that eat algae. Producers, like plants, make their own food through photosynthesis. Decomposers, like bacteria and fungi, break down dead organisms.
Because the yellow tang eats algae, it is classified as a consumer.