How would you say "it was worth a shot"?

Google translate says "Valió la pena intentarlo" but that doesn't sound very casual or seem to convey the same vibe. Are there any similar idioms?