Color converter

Try a hex code, a name like tomato, or an oklch() value. Copy the format you need straight into a stylesheet.

Input

No key required

Result

Example

Hex#ff6347
RGBrgb(255 99 71)
HSLhsl(9.13 100% 63.92%)
HWBhwb(9.13 27.84% 0%)
Lablab(62.99 59.36 47.88)
LCHlch(62.99 76.27 38.89)
OKLaboklab(0.69622 0.16523 0.10454)
OKLCHoklch(0.69622 0.19552 32.32)
Display P3color(display-p3 0.9283 0.4286 0.3199)
Named colortomato (exact)
Full response
{
  "hex": "#ff6347",
  "alpha": 1,
  "rgb": {
    "r": 255,
    "g": 99,
    "b": 71
  },
  "hsl": {
    "h": 9.13,
    "s": 100,
    "l": 63.92
  },
  "hwb": {
    "h": 9.13,
    "w": 27.84,
    "b": 0
  },
  "lab": {
    "l": 62.99,
    "a": 59.36,
    "b": 47.88
  },
  "lch": {
    "l": 62.99,
    "c": 76.27,
    "h": 38.89
  },
  "oklab": {
    "l": 0.69622,
    "a": 0.16523,
    "b": 0.10454
  },
  "oklch": {
    "l": 0.69622,
    "c": 0.19552,
    "h": 32.32
  },
  "displayP3": {
    "r": 0.9283,
    "g": 0.4286,
    "b": 0.3199
  },
  "css": {
    "hex": "#ff6347",
    "rgb": "rgb(255 99 71)",
    "hsl": "hsl(9.13 100% 63.92%)",
    "hwb": "hwb(9.13 27.84% 0%)",
    "lab": "lab(62.99 59.36 47.88)",
    "lch": "lch(62.99 76.27 38.89)",
    "oklab": "oklab(0.69622 0.16523 0.10454)",
    "oklch": "oklch(0.69622 0.19552 32.32)",
    "displayP3": "color(display-p3 0.9283 0.4286 0.3199)"
  },
  "gamut": {
    "srgb": true,
    "displayP3": true
  },
  "name": {
    "nearest": "tomato",
    "exact": true
  }
}

Run with curl

Copy this command to run the request in your terminal. It updates as you edit the input.

For higher limits, get a free API key and add -H "Authorization: Bearer $KAMINEKO_API_KEY".

GET /v1/color
curl 'https://api.kamineko.dev/v1/color?value=tomato'

Use with MCP

Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the color tool with this prompt.

What's #c83726 in OKLCH?
MCP https://api.kamineko.dev/mcp
claude mcp add --transport http kamineko \
  https://api.kamineko.dev/mcp \
  --header "Authorization: Bearer $KAMINEKO_API_KEY"