cURL
curl --request POST \ --url https://api.dirtroad.dev/tools/color-converter/hsl-to-hex \ --header 'Content-Type: application/json' \ --header 'X-Payment: <api-key>' \ --data ' { "h": 0, "s": 100, "l": 50 } '
{ "original": { "h": 123, "s": 123, "l": 123 }, "result": "#FF0000" }
Convert HSL values to a hex color code. Requires x402 blockchain payment.
x402 blockchain payment authorization header containing signed EIP-3009 Transfer with Authorization
Hue (0-360 degrees)
0 <= x <= 360
0
Saturation (0-100%)
0 <= x <= 100
100
Lightness (0-100%)
50
HSL values converted to hex color code
Show child attributes
Hex color code
"#FF0000"