Were the molds previously used for chocolate? It looks like cocoa butter to me ... air bubbles are clear.
Is this the part of the candy that touches the mold, or the exposed top? Air bubbles rise to the top.
Crystallized sugar is opaque like that but sugar wouldn't have isolated crystals, the whole batch would turn.