Body-mountable devices comprising a dyed polymer layer that covers a portion of an electronic structure embedded in a transparent polymer are described. An example method for fabricating a body-mountable device includes providing a dyed polymer material on an electronic structure. The electronic structure comprises at least one antenna, a sensor, and an electronic device. The example method also includes molding the dyed polymer material to provide a dyed polymer layer that covers a portion of the electronic structure.