Nanostructures taste the rainbow