Star Scrappers: Cave-In

Can I mine a Crystal when not all the cards played are in the same color, but the sum of the card levels in the appropriate color is equal to/higher than the cost of mining the Crystal?

All the cards played must be of the same color.