Skip to content

Palette

For a brand colour on a page or a card. Start with Getting started. This route does not fetch.

GET /v1/palette returns three stops. base is your colour. ink is black or white, whichever has more contrast on that base. tint mixes the base toward white in linear sRGB, thirty percent white.

Try it

https://fetch.li/v1/palette?hex=00ff85

Parameters

Name Required Notes
hex yes 3 or 6 digit hex

Related

Contrast if you need the ratio. Also style and demo.

Try it

GET https://fetch.li/v1/palette


    
    
    
  

Answer

Response

response