There is no officially recognized species called a "rainbow crab."
You may be thinking of a colorful crab such as the blue land crab or porcelain crab, or perhaps the rainbow runner fish.
More context or a photo would help identify the specific animal.