I wish to make the following comparison:
On one side, I have a simple image (A) which contains certain colors :

On the other hand, I have another image (B) that contains a color palette :

I want to know if the dominant colors in image A are contained in image B
how do I proceed?
thank you

(french user : sorry to my bad english)