# Colour converter

> Convert a colour between HEX, RGB, HSL and CMYK online. Paste any format, copy the others, and see which text colour reads best on it.

Free tool by Orkosi. Page: https://orkosi.com/tools/color-converter

A designer sends a HEX code, the CSS wants HSL and the printer asks for CMYK. Paste the colour in whatever form you have and copy the one you need.

1. Type a colour: #0052FF, rgb(0, 82, 255) or hsl(221, 100%, 50%).
2. Press Convert.
3. Copy the format you need.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `color` | text | yes | Colour. |

## Example

Input:

```json
{
  "color": "#0052FF"
}
```

Result:

```json
{
  "hex": "#0052FF",
  "rgb": "rgb(0, 82, 255)",
  "hsl": "hsl(221, 100%, 50%)",
  "cmyk": "cmyk(100%, 68%, 0%, 0%)",
  "css_variable": "--color: #0052FF;",
  "best_text_color": "#FFFFFF",
  "preview": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 96\" width=\"640\" height=\"96\" role=\"img\" aria-label=\"Colour preview\"><rect x=\"0\" y=\"0\" width=\"640.5\" height=\"96\" fill=\"#0052FF\"/><text x=\"320\" y=\"53\" text-anchor=\"middle\" font-family=\"system-ui,sans-serif\" font-size=\"13\" fill=\"#FFFFFF\">#0052FF</text></svg>"
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "color-converter", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/color-converter/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"color":"#0052FF"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Which formats can I paste?**

HEX with three or six digits (with or without #), rgb() and hsl(), with commas or spaces between the numbers.

**Is the CMYK value right for print?**

It is the mathematical conversion. A print shop converts with a colour profile for its press and paper, so ask for a proof on brand colours.

**What is the best text colour?**

White or near-black, whichever has the higher contrast ratio against your colour by the WCAG formula.

All free tools: https://orkosi.com/tools.md
