Material Design Color Mapper

Maps colors to a discretized Material Design color palette

Algorithmia Platform License

Try the API

{
  "unprocessed": {
    "colors": []
  },
  "processed": {
    "colors": [
      {
        "rgb": [
          156,
          204,
          101
        ],
        "hex": "#9ccc65"
      },
      {
        "rgb": [
          213,
          0,
          0
        ],
        "hex": "#d50000"
      },
      {
        "rgb": [
          85,
          139,
          47
        ],
        "hex": "#558b2f"
      },
      {
        "rgb": [
          215,
          204,
          200
        ],
        "hex": "#d7ccc8"
      }
    ]
  }
}

Install & Use

Use

curl -X POST -d '{"colors":[{"rgb": [143,206,108],"hex": "#8fce6c"},
                      {"rgb": [256,0,0],"hex": "#ff0000"},
                      {"hex":"#698c1f"},
                      {"rgb":[200,200,200]}]}
' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/vagrant/snapToMaterial/0.1.0
  
Curl Docs →