Color scale generator

Build eleven swatches from light (50) to dark (950). Give your base color a step, or let its lightness set its place.

Input

No key required

Result

Example

  • #f3f7fe50
  • #e2ebfc100
  • #c7d9fa200
  • #a3c0f6300
  • #77a1f2400
  • #4f83ef500
  • #2563eb600
  • #164fcd700
  • #1041ac800
  • #0c3591900
  • #05205f950

Full response
{
  "baseStep": 600,
  "colors": [
    {
      "step": 50,
      "hex": "#f3f7fe",
      "oklch": {
        "l": 0.97512,
        "c": 0.01027,
        "h": 261.79
      },
      "css": "oklch(0.97512 0.01027 261.79)",
      "contrast": {
        "white": 1.07,
        "black": 19.54
      }
    },
    {
      "step": 100,
      "hex": "#e2ebfc",
      "oklch": {
        "l": 0.93835,
        "c": 0.02497,
        "h": 263.33
      },
      "css": "oklch(0.93835 0.02497 263.33)",
      "contrast": {
        "white": 1.19,
        "black": 17.52
      }
    },
    {
      "step": 200,
      "hex": "#c7d9fa",
      "oklch": {
        "l": 0.88239,
        "c": 0.04967,
        "h": 262.61
      },
      "css": "oklch(0.88239 0.04967 262.61)",
      "contrast": {
        "white": 1.42,
        "black": 14.73
      }
    },
    {
      "step": 300,
      "hex": "#a3c0f6",
      "oklch": {
        "l": 0.80561,
        "c": 0.08322,
        "h": 262.64
      },
      "css": "oklch(0.80561 0.08322 262.64)",
      "contrast": {
        "white": 1.83,
        "black": 11.42
      }
    },
    {
      "step": 400,
      "hex": "#77a1f2",
      "oklch": {
        "l": 0.71264,
        "c": 0.12769,
        "h": 262.7
      },
      "css": "oklch(0.71264 0.12769 262.7)",
      "contrast": {
        "white": 2.57,
        "black": 8.16
      }
    },
    {
      "step": 500,
      "hex": "#4f83ef",
      "oklch": {
        "l": 0.62824,
        "c": 0.17171,
        "h": 263.04
      },
      "css": "oklch(0.62824 0.17171 263.04)",
      "contrast": {
        "white": 3.6,
        "black": 5.82
      }
    },
    {
      "step": 600,
      "hex": "#2563eb",
      "oklch": {
        "l": 0.54615,
        "c": 0.21521,
        "h": 262.88
      },
      "css": "oklch(0.54615 0.21521 262.88)",
      "contrast": {
        "white": 5.16,
        "black": 4.06
      }
    },
    {
      "step": 700,
      "hex": "#164fcd",
      "oklch": {
        "l": 0.47835,
        "c": 0.20341,
        "h": 262.87
      },
      "css": "oklch(0.47835 0.20341 262.87)",
      "contrast": {
        "white": 6.92,
        "black": 3.03
      }
    },
    {
      "step": 800,
      "hex": "#1041ac",
      "oklch": {
        "l": 0.41968,
        "c": 0.17857,
        "h": 262.78
      },
      "css": "oklch(0.41968 0.17857 262.78)",
      "contrast": {
        "white": 8.84,
        "black": 2.37
      }
    },
    {
      "step": 900,
      "hex": "#0c3591",
      "oklch": {
        "l": 0.3692,
        "c": 0.15812,
        "h": 262.96
      },
      "css": "oklch(0.3692 0.15812 262.96)",
      "contrast": {
        "white": 10.85,
        "black": 1.93
      }
    },
    {
      "step": 950,
      "hex": "#05205f",
      "oklch": {
        "l": 0.27317,
        "c": 0.11678,
        "h": 262.98
      },
      "css": "oklch(0.27317 0.11678 262.98)",
      "contrast": {
        "white": 15.23,
        "black": 1.37
      }
    }
  ]
}

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/scale
curl 'https://api.kamineko.dev/v1/color/scale?value=%232563eb'

Use with MCP

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

Make a 50–950 color scale from #2563eb for my Tailwind theme.
MCP https://api.kamineko.dev/mcp
claude mcp add --transport http kamineko \
  https://api.kamineko.dev/mcp \
  --header "Authorization: Bearer $KAMINEKO_API_KEY"