Devoid works in all zones, not just on the battlefield.

Artwork
Loading artwork…
Barrage Tyrant
Battle for Zendikar · #127 · EN
Nonfoil—Foil—
Card rules
Devoid (This card has no color.)
2
, Sacrifice another colorless creature: This creature deals damage equal to the sacrificed creature's power to any target.
5/3
Terrible fury. Excellent aim.
Rare · Illustrated by Chris Rallis
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Barrage Tyrant deals the damage, not the sacrificed creature. For example, if the sacrificed creature had lifelink, you won't gain life.
If a card loses devoid, it will still be colorless. This is because effects that change an object's color (like the one created by devoid) are considered before the object loses devoid.
Cards with devoid use frames that are variations of the transparent frame traditionally used for Eldrazi. The top part of the card features some color over a background based on the texture of the hedrons that once imprisoned the Eldrazi. This coloration is intended to aid deckbuilding and game play.
A card with devoid is just colorless. It's not colorless and the colors of mana in its mana cost.
Other cards and abilities can give a card with devoid color. If that happens, it's just the new color, not that color and colorless.