cURL
curl --request POST \ --url https://api.dirtroad.dev/tools/color-converter/hex-to-rgb \ --header 'Content-Type: application/json' \ --header 'X-Payment: <api-key>' \ --data ' { "hex": "#FF0000" } '
{ "original": "<string>", "result": { "r": 127.5, "g": 127.5, "b": 127.5 } }
Convert a hex color code to RGB values. Requires x402 blockchain payment.
x402 blockchain payment authorization header containing signed EIP-3009 Transfer with Authorization
Hex color code (with or without # prefix)
"#FF0000"
Hex color converted to RGB values
Original hex color input
Show child attributes