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.
| Method | Path | |
|---|---|---|
GET | /v1/convert | convert one color or a batch between HEX, RGB, HSL, HWB, CMYK, Lab, LCH, OKLCH, XYZ, LUV |
GET | /v1/contrast | WCAG ratio for fg/bg, or a full matrix with colors= |
GET | /v1/delta-e | ΔE76 and ΔE OK between two colors |
GET | /v1/palette | harmony, scale or traditional palette |
GET | /v1/scale | 50–950 scale with CSS, Tailwind and JSON exports |
GET | /v1/nearest | nearest traditional, design-system and RAL colors |
GET | /v1/lookup | search traditional names, RAL codes and design-system tokens |
GET | /v1/css | gradient or mesh CSS/SVG output |
POST | /v1/accessibility | contrast matrix plus color-vision collision audit |
GET | /v1/openapi.json | OpenAPI 3.1 description |
POST | /mcp | MCP 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.