Theoretically core-multishell nanowires under a cross-section of hexagonal geometry should exhibit peculiar confinement effects. Using a hard X-ray nanobeam, here we show experimental evidence for carrier localization phenomena at the hexagon corners by combining synchrotron excited optical luminescence with simultaneous X-ray fluorescence spectroscopy. Applied to single coaxial n-GaN/InGaN multiquantum-well/p-GaN nanowires, our experiment narrows the gap between optical microscopy and high-resolution X-ray imaging, and calls for further studies on the underlying mechanisms of optoelectronic nanodevices.