Irodori彩り

Documentation API

Points d’accès : /v1/convert · /v1/contrast · /v1/delta-e · /v1/palette · /v1/scale · /v1/nearest · /v1/lookup · /v1/css · /v1/accessibility. Tous sont sans état, compatibles CORS et renvoient du JSON ; le schéma complet est sur /v1/openapi.json. MCP est exposé sur /mcp (Streamable HTTP) ou en local via npm run mcp.

MethodPath
GET/v1/convertconvert one color or a batch between HEX, RGB, HSL, HWB, CMYK, Lab, LCH, OKLCH, XYZ, LUV
GET/v1/contrastWCAG ratio for fg/bg, or a full matrix with colors=
GET/v1/delta-eΔE76 and ΔE OK between two colors
GET/v1/paletteharmony, scale or traditional palette
GET/v1/scale50–950 scale with CSS, Tailwind and JSON exports
GET/v1/nearestnearest traditional, design-system and RAL colors
GET/v1/lookupsearch traditional names, RAL codes and design-system tokens
GET/v1/cssgradient or mesh CSS/SVG output
POST/v1/accessibilitycontrast matrix plus color-vision collision audit
GET/v1/openapi.jsonOpenAPI 3.1 description
POST/mcpMCP Streamable HTTP endpoint (JSON-RPC 2.0)

curl "/v1/convert?color=%23FF5733"

All endpoints are stateless, CORS-enabled and edge-cacheable. MCP is served at /mcp over Streamable HTTP, or locally over stdio: npm run mcp.