{"category":"calc","endpoint":"https://setget.net/v1/tools/color-blend","examples":[{"input":{"color":"#ff0000","other":"#0000ff"},"output":{"alpha":1,"amount":50,"hex":"#800080","hsl":"hsl(300, 100%, 25%)","mode":"mix","rgb":"rgb(128, 0, 128)","space":"srgb"}},{"input":{"color":"#ff0000","other":"#0000ff","space":"oklab"},"output":{"alpha":1,"amount":50,"hex":"#8c53a2","hsl":"hsl(283.4, 32.3%, 48.1%)","mode":"mix","rgb":"rgb(140, 83, 162)","space":"oklab"},"title":"The same mix in OKLab"},{"input":{"amount":20,"color":"#0088cc","mode":"lighten"},"output":{"alpha":1,"amount":20,"hex":"#33a0d6","hsl":"hsl(200, 66.7%, 52%)","mode":"lighten","rgb":"rgb(51, 160, 214)","space":"srgb"},"title":"Lighten by 20%"}],"input_schema":{"additionalProperties":false,"properties":{"amount":{"default":50,"description":"How far to go, in percent. 0 keeps the starting colour, 100 gives the other one.","maximum":100,"minimum":0,"type":"number"},"color":{"description":"The starting colour, in any CSS format.","examples":["#ff0000"],"maxLength":80,"type":"string"},"mode":{"default":"mix","description":"mix blends towards \"other\", lighten towards white, darken towards black.","enum":["mix","lighten","darken"],"type":"string"},"other":{"description":"The colour to mix in. Needed for mode \"mix\".","examples":["#0000ff"],"maxLength":80,"type":"string"},"space":{"default":"srgb","description":"Colour space to mix in. OKLab gives more even, natural steps.","enum":["srgb","oklab"],"type":"string"}},"required":["color"],"type":"object"},"keywords":["color mixer","blend colors","mix two colors","lighten color","darken color","color-mix css","tint and shade","hex color blend"],"related":["color-convert","palette-generate","css-gradient","contrast-ratio"],"slug":"color-blend","summary":"Mix two colours by any ratio in sRGB or OKLab, or lighten or darken a colour by a percentage.","tier":"inline","title":"Colour mixer","url":"https://setget.net/tools/color-blend"}
