# Colour palette from image

> Upload a photo and get a harmonious colour palette with HEX, RGB and HSL values plus Tailwind and CSS variables. Runs in your browser. Free.

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

Turn a photo, logo or screenshot into a palette you can drop straight into your brand kit. Copy HEX values or export CSS and Tailwind tokens.

1. Drop an image.
2. We quantise the pixels locally and pick the dominant, accent and neutral colours.
3. Copy HEX/RGB/HSL or export CSS variables.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `image_url` | text | yes | Address of the image. A public https link to a JPG, PNG, WebP, GIF or AVIF image, up to 15 MB. |
| `count` | integer | no | Number of colours. Default: 5. |

## Example

Input:

```json
{
  "image_url": "https://orkosi.com/samples/sample.jpg"
}
```

## 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-palette", "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-palette/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"image_url":"https://orkosi.com/samples/sample.jpg"}}'
```

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

## Questions

**How are the colours chosen?**

A median-cut quantiser groups the image's pixels into clusters and ranks them by coverage and saturation.

**Can I export the palette?**

Yes: copy single values, a CSS :root block, or a Tailwind colours snippet.

**Is my image uploaded?**

No. Extraction runs in your browser.

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