It is impossible to say for certain what kind of caterpillar you are describing without more information! Many species share this general color pattern.
To help narrow it down, could you tell me:
Where did you see the caterpillar? (Location, specific plant, etc.)
What size was it? (Tiny, medium, large)
Did it have any other markings? (Spots, hairs, spines, etc.)
What was it eating? (Specific plant, if known)
Once I have more information, I can help you identify the caterpillar!