GET
tool-color
公开接口 累计 1 次/api/v1/tool-color
HEX / RGB / HSL 互转
/api/v1/tool-color
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
value |
string |
必填 | - | 颜色值,如 #5b5bd6 或 rgb(91,91,214) |
{
"ok": true,
"data": {
"result": {
"hex": "#5b5bd6",
"rgb": {
"r": 91,
"g": 91,
"b": 214
},
"hsl": {
"h": 239,
"s": 60.5,
"l": 59.8
}
}
}
}
curl -X GET '/api/v1/tool-color'