81trust / 100
Color
by Color convert in Documents & files
x402 APIPassing, checked 3 h ago
Convert a color between hex, RGB, and HSL. Accepts "#1a2b3c", "rgb(26,43,60)", or "hsl(210,40%,17%)".
POST https://agent402.tools/api/color
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 197 ms typical, 462 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/color" \
-H "content-type: application/json" \
-d '{"color":"#4ade80"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fcolor
const res = await pay("https://agent402.tools/api/color", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"color":"#4ade80"}),
});
console.log(await res.json());Example input
{
"color": "#4ade80"
}Example output
{
"hex": "#4ade80",
"hsl": [
142,
69,
58
],
"luminance": 0.58,
"rgb": [
74,
222,
128
]
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 191 ms | $0.001 |
| 6 h ago | Passed | 402 | 190 ms | $0.001 |
| 10 h ago | Passed | 402 | 462 ms | $0.001 |
| 14 h ago | Passed | 402 | 238 ms | $0.001 |
| 17 h ago | Passed | 402 | 197 ms | $0.001 |
| 22 h ago | Passed | 402 | 197 ms | $0.001 |
| 25 h ago | Passed | 402 | 199 ms | $0.001 |
| 28 h ago | Passed | 402 | 192 ms | $0.001 |
| 33 h ago | Passed | 402 | 608 ms | $0.001 |