Converts HSV (Hue, Saturation, Value) color values to hexadecimal format. Access via MCP in Cursor or Windsurf, or REST at `/v1/color/hsv-to-hex`. Input HSV components (H: 0-360, S/V: 0-100) and get precise hex output like `#FF5733`. Deterministic conversion ensures consistent results across design workflows.
curl "https://tinyfn.io/v1/color/hsv-to-hex" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/color/hsv-to-hex', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/color/hsv-to-hex',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's color tools:
{
"mcpServers": {
"tinyfn-color": {
"url": "https://tinyfn.io/mcp/color",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Hue accepts 0-360 degrees, while Saturation and Value accept 0-100 percent. Values outside these ranges are typically clamped to valid bounds.
Call the hsv-to-hex tool with your HSV values. The MCP integration handles the conversion and returns the hex color code directly in your editor.
Yes, it correctly handles edge cases: HSV(0,0,100) converts to #FFFFFF (white), HSV(0,0,0) converts to #000000 (black).
HSV uses Value (brightness) while HSL uses Lightness. HSV(0,100,100) is pure red, but HSL(0,100,50) gives the same result with different scaling.
The endpoint processes one HSV color per request. For batch operations, make multiple API calls or use the MCP tool iteratively.