{"category":"calc","endpoint":"https://setget.net/v1/tools/color-convert","examples":[{"input":{"color":"#ff0000"},"output":{"alpha":1,"blue":0,"green":0,"hex":"#ff0000","hsl":"hsl(0, 100%, 50%)","hwb":"hwb(0 0% 0%)","in_gamut":true,"name":"red","nearest_name":"red","oklab":"oklab(0.628 0.2249 0.1258)","oklch":"oklch(0.628 0.2577 29.23)","red":255,"rgb":"rgb(255, 0, 0)"}},{"input":{"color":"hsl(270, 50%, 40%)"},"output":{"alpha":1,"blue":153,"green":51,"hex":"#663399","hsl":"hsl(270, 50%, 40%)","hwb":"hwb(270 20% 40%)","in_gamut":true,"name":"rebeccapurple","nearest_name":"rebeccapurple","oklab":"oklab(0.4403 0.0882 -0.1339)","oklch":"oklch(0.4403 0.1603 303.37)","red":102,"rgb":"rgb(102, 51, 153)"},"title":"HSL to everything else"}],"input_schema":{"additionalProperties":false,"properties":{"color":{"description":"A colour in any CSS format: hex, rgb(), hsl(), hwb(), oklab(), oklch() or a name.","examples":["#ff0000"],"maxLength":80,"type":"string"}},"required":["color"],"type":"object"},"keywords":["hex to rgb","rgb to hex","color converter","colour converter","hsl to hex","hex to hsl","oklch converter","css color","color name","rgba to hex"],"related":["contrast-ratio","palette-generate","color-blend","css-gradient"],"slug":"color-convert","summary":"Convert a colour between hex, RGB, HSL, HWB, OKLab and OKLCH, and find the nearest CSS colour name.","tier":"inline","title":"Colour converter","url":"https://setget.net/tools/color-convert"}
