The same color conversions as on https://convertingcolors.com are now available as API.
Like on the website, the conversions for values outside the valid range are set to the lowest / highest allowed number in this color format.
The response usually looks like:
{ "errors": [], "output": {}, "input": {}, }
If there is any error, the response code is 400; if there is an authentication error, the response is 401; otherwise, you will get a 200.
In the case of mass conversion, there might be only some colors that are in the wrong format; still, the status code 400 will be returned, but the output will contain the successful conversions.