← Arendustööriistad

Värvipalett

GET /colors/scheme/:hex

Genereerige a harmonious color palette from any starting hex color. Toetab multiple color theory modes: analogic, complement, monochrome, triad, quad, ja muud. Tagastab a configurable number of colors (default 5), each with hex, RGB, and HSL values. Kasulik design tools, theme generators, brand color exploration, and any creative application that needs to derive related colors from a base color.

Parameetrid

hex kohustuslik

Hex color

mode valikuline vaikeväärtus: analogic

Mode

count valikuline vaikeväärtus: 5

Colors

Näidispäringud

Põhikasutus
curl "https://nordapi.ee/api/v1/colors/scheme/4287f5?mode=analogic"
Analogic palette from blue
curl "https://nordapi.ee/api/v1/colors/scheme/4287f5?mode=analogic"
Complementary colors from red
curl "https://nordapi.ee/api/v1/colors/scheme/ff0000?mode=complement"
Monochrome palette with 8 colors
curl "https://nordapi.ee/api/v1/colors/scheme/2ecc71?mode=monochrome&count=8"
Triad palette from purple
curl "https://nordapi.ee/api/v1/colors/scheme/9b59b6?mode=triad"

Reaalajas vastus

{
  "data": {
    "colors": [
      {
        "hex": "#3A80F0",
        "name": "Blueberry",
        "rgb": "rgb(58, 128, 240)"
      },
      {
        "hex": "#3E4DF2",
        "name": "Royal Blue",
        "rgb": "rgb(62, 77, 242)"
      },
      {
        "hex": "#6842F3",
        "name": "Blueberry",
        "rgb": "rgb(104, 66, 243)"
      },
      {
        "hex": "#9F45F4",
        "name": "Electric Violet",
        "rgb": "rgb(159, 69, 244)"
      },
      {
        "hex": "#D549F5",
        "name": "Heliotrope",
        "rgb": "rgb(213, 73, 245)"
      }
    ],
    "count": 5,
    "mode": "analogic",
    "seed": "#4287F5"
  },
  "success": true
}