Creates darker variations of any color by systematically reducing brightness while preserving hue. Use via MCP in Cursor or Windsurf for design workflows, or REST API at `/v1/color/shade`. Input any color format (hex, RGB, HSL) and specify how many shades you need. Returns consistent, mathematically-derived darker variants perfect for UI design systems.
curl "https://tinyfn.io/v1/color/shade" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/color/shade', {
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/shade',
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"
}
}
}
}
Pass your base color and specify the number of shades needed. The tool returns progressively darker variations with consistent brightness steps, maintaining the original hue and saturation relationships.
Accepts hex (#FF5733), RGB (rgb(255,87,51)), HSL (hsl(9,100%,60%)), and named colors (red, blue). Output format matches your input format by default.
Yes, Claude Code can call this tool to generate shade variations programmatically. Perfect for creating consistent color schemes in CSS files or design tokens without manual color picking.
Shades darken colors by reducing brightness/lightness, while tints lighten by adding white. Use shades for hover states, shadows, or depth effects in dark themes.
Pure black (#000000) cannot be made darker, so the tool returns the original black for all requested shades. Consider starting with a dark gray instead for visible variations.
Get your free API key and start using Generate Shades in seconds.
Get Free API Key