Colour Filter Display with Colour Code

how we can show this type of color filter in our Shopify store with algolia search