# Generator til farvenuancer

> Generér en komplet skala af toner og nuancer fra én brandfarve, fra 50 til 950, som CSS-variabler og et Tailwind-konfigurationsudsnit. Gratis.

Free tool by Orkosi. Page: https://orkosi.com/tools/color-shades-generator?lang=da

Én brandfarve er ikke en palette. Få de elleve trin, et designsystem har brug for, fra den lyseste baggrundsfarve til den mørkeste tekstfarve, med din farve som 500.

1. Indtast din brandfarve.
2. Giv skalaen et navn, f.eks. brand eller primary.
3. Tryk på Generér, og kopiér CSS-variablerne eller Tailwind-udsnittet.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `color` | text | yes | Basisfarve. |
| `name` | text | no | Skalaens navn. Default: "brand". |

## Example

Input:

```json
{
  "color": "#0052FF",
  "name": "brand"
}
```

Result:

```json
{
  "shades": [
    {
      "step": 50,
      "hex": "#F0F5FF"
    },
    {
      "step": 100,
      "hex": "#E0EAFF"
    },
    {
      "step": 200,
      "hex": "#B8CEFF"
    },
    {
      "step": 300,
      "hex": "#85ABFF"
    },
    {
      "step": 400,
      "hex": "#4782FF"
    },
    {
      "step": 500,
      "hex": "#0052FF"
    },
    {
      "step": 600,
      "hex": "#0044D6"
    },
    {
      "step": 700,
      "hex": "#0037AD"
    }
  ],
  "css": ":root {\n  --brand-50: #F0F5FF;\n  --brand-100: #E0EAFF;\n  --brand-200: #B8CEFF;\n  --brand-300: #85ABFF;\n  --brand-400: #4782FF;\n  --brand-500: #0052FF;\n  --brand-600: #0044D6;\n  --brand-700: #0037AD;\n  --brand-800: #002A85;\n  --brand-900: #002066;\n  --brand-950: #00133D;\n}",
  "tailwind": "brand: {\n  50: '#F0F5FF',\n  100: '#E0EAFF',\n  200: '#B8CEFF',\n  300: '#85ABFF',\n  400: '#4782FF',\n  500: '#0052FF',\n  600: '#0044D6',\n  700: '#0037AD',\n  800: '#002A85',\n  900: '#002066',\n  950: '#00133D',\n}",
  "preview": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 96\" width=\"640\" height=\"96\" role=\"img\" aria-label=\"Farveforhåndsvisning\"><rect x=\"0\" y=\"0\" width=\"58.7\" height=\"96\" fill=\"#F0F5FF\"/><text x=\"29.1\" y=\"53\" text-anchor=\"middle\" font-family=\"system-ui,sans-serif\" font-size=\"13\" fill=\"#0F172A\">50</text><rect x=\"58.2\" y=\"0\" width=\"58.7\" height=\"96\" fill=\"#E0EAFF\"/><text x=\"87.3\" y=\"53\" text-ancho…"
}
```

## 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-shades-generator", "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-shades-generator/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"color":"#0052FF","name":"brand"}}'
```

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

## Questions

**Hvordan oprettes nuancerne?**

Farvens tone og mætning bevares, mens lysheden går fra 97 % ned til 12 %. Din nøjagtige farve er trin 500.

**Hvordan bruger jeg det i Tailwind?**

Indsæt uddraget under theme.extend.colors i din Tailwind-konfiguration, og brug derefter klasser som bg-brand-100 og text-brand-700.

**Hvilke trin fungerer godt til tekst?**

Tekst på 700 eller mørkere på en baggrund på 50 eller 100 består som regel WCAG AA. Tjek det valgte par med kontrasttjekket.

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