Design
图片 URL 配色提取器
抓取远程图片 URL,提取主色调,导出可直接用于代码的配色文件,并查看对比度结果
html· HTML 结果打开工具
快速开始
用三种语言从你的代码中调用此工具。
cURL
curl -X POST 'https://api.elysiatools.com/zh/api/tools/color-palette-extractor-from-image-url' \
-H 'Content-Type: application/json' \
-d '{"imageUrl":"data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%221200%22%20height=%22630%22%20viewBox=%220%200%201200%20630%22%3E%3Crect%20width=%221200%22%20height=%22630%22%20fill=%22%232563eb%22/%3E%3Crect%20x=%2270%22%20y=%2270%22%20width=%22360%22%20height=%22490%22%20rx=%2236%22%20fill=%22%23f8fafc%22/%3E%3Crect%20x=%22490%22%20y=%2270%22%20width=%22640%22%20height=%22220%22%20rx=%2232%22%20fill=%22%23111827%22/%3E%3Crect%20x=%22490%22%20y=%22330%22%20width=%22280%22%20height=%22150%22%20rx=%2228%22%20fill=%22%23f59e0b%22/%3E%3Crect%20x=%22810%22%20y=%22330%22%20width=%22320%22%20height=%22150%22%20rx=%2228%22%20fill=%22%2310b981%22/%3E%3C/svg%3E","paletteSize":6,"exportPackageName":"launch-hero-palette"}'