The electronic structure of 1,3,5-triphenyl-6oxoverdazyl, a heteroatom-rich stable organic radical, and its diamagnetic 1,3,5-triphenyl-6-oxotetrazane precursor are probed using X-ray absorption near-edge structure (XANES) spectroscopy. The N K-edge XANES spectra of the 6-oxoverdazyl radical contain strong N 1s → π* resonances for each set of equivalent nitrogen atoms. The fact that these resonances are absent from the analogous spectra of the 6-oxotetrazane, whereas the O Kedge and C K-edge XANES spectra of both species are very similar, demonstrates that the unpaired electron of the radical is localized primarily on the N atoms of the 6-oxoverdazyl heterocycle. The O K-edge XANES spectra of both species contain strong O 1s → π* (CO) peaks, but the peak of the radical is red-shifted by 0.5 eV relative to that of the 6-oxotetrazane, which indicates that the CO bond in the radical is part of a larger π-conjugated system. The proposed interpretations of the XANES spectra are aided by density-functional calculations.