I thought you were asking about palette swapping, i don't know how i would do this you're asking... Sorry 😥
Maybe this "color quantizition" thing but instead of getting the near pixels it gets from a palette? Idk how it'd work, seems easier to draw the sprites already in palette.