Mix two colors
Mix two colors at a ratio in a chosen color space, like CSS color-mix(). OKLab keeps the middle bright, sRGB tends to turn gray. Returns the result and a ready color-mix() expression.
get/api/v1/mix-colors
Request
- Base URL: https://pickshade.com
- URL: https://pickshade.com/api/v1/mix-colors
- Auth: none declared
Query parameters
firststring required
Any color: #ff5733, rgb(255 87 51), hsl(11 100% 60%), oklch(68% 0.21 34), a CSS or common name like navy, or a Tailwind class like sky-500
secondstring required
Any color: #ff5733, rgb(255 87 51), hsl(11 100% 60%), oklch(68% 0.21 34), a CSS or common name like navy, or a Tailwind class like sky-500
amountnumber
Share of the second color in percent
space'oklab' | 'oklch' | 'srgb' | 'srgb-linear' | 'lab' | 'lch' | 'hsl' | 'hwb'
Response
Result
Changes
No recorded changes to this operation across all 1 revision of this API.