Color Scheme Extraction

Provide an image URL. This Algorithm develops a color scheme representative of that image.

Algorithmia Platform License · Internet Access

Run an Example

{
  "colors": [
    {
      "rgb": [
        152,
        114,
        64
      ],
      "hex": "#987240"
    },
    {
      "rgb": [
        199,
        160,
        105
      ],
      "hex": "#c7a069"
    },
    {
      "rgb": [
        43,
        21,
        5
      ],
      "hex": "#2b1505"
    },
    {
      "rgb": [
        183,
        162,
        127
      ],
      "hex": "#b7a27f"
    },
    {
      "rgb": [
        4,
        2,
        2
      ],
      "hex": "#040202"
    },
    {
      "rgb": [
        173,
        139,
        89
      ],
      "hex": "#ad8b59"
    },
    {
      "rgb": [
        238,
        230,
        186
      ],
      "hex": "#eee6ba"
    },
    {
      "rgb": [
        106,
        62,
        15
      ],
      "hex": "#6a3e0f"
    },
    {
      "rgb": [
        220,
        187,
        142
      ],
      "hex": "#dcbb8e"
    },
    {
      "rgb": [
        170,
        91,
        9
      ],
      "hex": "#aa5b09"
    },
    {
      "rgb": [
        77,
        38,
        6
      ],
      "hex": "#4d2606"
    },
    {
      "rgb": [
        89,
        134,
        133
      ],
      "hex": "#598685"
    },
    {
      "rgb": [
        24,
        60,
        55
      ],
      "hex": "#183c37"
    },
    {
      "rgb": [
        128,
        90,
        41
      ],
      "hex": "#805a29"
    }
  ]
}

Install & Use

Use

curl -X POST -d '{"url": "http://i.imgur.com/Xi7zyYw.png"}
' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/vagrant/ColorSchemeExtraction/0.2.0