RGB 2 Color Name

No algorithm description given

This API makes it easier for artists to identify color names to use English words to describe colors.  Colors are defined by 3 integers for RGB (Red Green Blue).  The program returns black if any number is larger than the 255 maximum value for each color. The 255x255x255 = 16,581,375 possible individual color values. Currently, this API knows about 2,790 unique color names widely defined publicly.  The three dimensions involved in specifying a color makes it difficult to  manually  identify the closest point with a color name. The bulk of the work on this API was in compiling the color names and their RGB coordinates. There were many duplicates in both names and color coordinates. Inputs and Outputs: The colors of a few famous social media and tech companies are known by this API, thanks to https://www.materialui.co/socialcolors. Additional companies have been added into this API, such as Google, Amazon, and IBM. Example 1: IBM Blue and Hex equivalent Organizations need to precisely specify the colors in their logo so that vendors accurately render it online, in packaging, etc..  In  https://www-03.ibm.com/press/us/en/photo/20190.wss IBM defines the color of its trademark Blue color as "PMS 2718C; Process equivalent: Cyan 75%, Magenta 43%, Yellow 0%, Black 0%; RGB equivalent: Red 90, Green 135, Blue 197 ; Broadcast equivalent: Red 22%, Green 42%, Blue 70%.: Let's see if this API recognizes it: [90,135,197] The output: {
 "ColorName" : "IBM Blue" ,
 "ColorRGB" : [90,135,197] ,
 "ColorHex" : "#5A87C5" ,
 "ColorDiff" : "(+0,+0,+0)" 
} "#5A87C5" is the hex equivalent of the RGB color found. "(+0,+0,+0)" means that the color found is a direct hit of the color input. Example 2: Pantone So for many years, designers make use of the Pantone palette of 1,340 colors, which are  proprietary because of the work that went into figuring out what mix of pigments of paints and dyes are needed to duplicate it accurately.  Pantone's "PMS" colors are from http://us.labelpartners.com/pantone_coated_table.html. For a fee, Pantone offers tools pros use to specify and measure a wide number of colors, such as   "the world's ugliest color"   Pantone 448 C at ["74","65",42"], which governments use to discourage smoking.  Example 3: X11, SVG, CSS The X11 and SVG standards were created to name colors that can best be displayed by display monitor hardware with minimal processing (at a time when displays had a smaller gamut than today).  A sample input is: [221,18,137]  It is closest to the color named "burlywood", a brownish color defined by the X11 standard as "#DEB887" is the hex value used in CSS for display on computer monitors . Such colors may not be available in physical paint from a hardware store. The "(-3,+6,-5)" means the color name is 3 less on the Red scale, 6 more in the Green scale, and 5 less on the Blue scale. {
 "ColorName" : "Pantone 219 C" ,
 "ColorRGB" : [218,24,132] ,
 "ColorHex" : "#DA1884" ,
 "ColorDiff" : "(-3,+6,-5)" 
} Credits: The bulk of the work on this is to reconcile duplicate colors and color names from a variety of sources.  19 "Metro" colors are defined by Microsoft for Windows 8 from https://www.materialui.co/metrocolors 18 Material Flat colors from  https://www.materialui.co/flatuicolors 29 Company colors from https://www.materialui.co/socialcolors Crayola colors US Federal Standard 595 from http://www.fed-std-595.com/FS-595-Paint-Spec.html Thanks to Ayush Pareek for his Python numpy genius. This capability is also needed for a finger camera (IoT device) which speaks the color name.

(no tags)

Cost Breakdown

10 cr
royalty per call
1 cr
usage per second
avg duration

Cost Calculator

API call duration (sec)
API calls
Estimated cost
per calls
for large volume discounts
For additional details on how pricing works, see Algorithmia pricing.

No permissions required

This algorithm does not require any special permissions.

To understand more about how algorithm permissions work, see the permissions documentation.

1. Type your input

2. See the result

Running algorithm...

3. Use this algorithm

curl -X POST -d '{{input | formatInput:"curl"}}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/wilsonmar/RGB2ColorName/0.1.23
View cURL Docs
algo auth
algo run algo://wilsonmar/RGB2ColorName/0.1.23 -d '{{input | formatInput:"cli"}}'
View CLI Docs
import (
  algorithmia "github.com/algorithmiaio/algorithmia-go"

input := {{input | formatInput:"go"}}

var client = algorithmia.NewClient("YOUR_API_KEY", "")
algo, _ := client.Algo("algo://wilsonmar/RGB2ColorName/0.1.23")
resp, _ := algo.Pipe(input)
response := resp.(*algorithmia.AlgoResponse)
View Go Docs
import com.algorithmia.*;
import com.algorithmia.algo.*;

String input = "{{input | formatInput:"java"}}";
AlgorithmiaClient client = Algorithmia.client("YOUR_API_KEY");
Algorithm algo = client.algo("algo://wilsonmar/RGB2ColorName/0.1.23");
AlgoResponse result = algo.pipeJson(input);
View Java Docs
import com.algorithmia._
import com.algorithmia.algo._

val input = {{input | formatInput:"scala"}}
val client = Algorithmia.client("YOUR_API_KEY")
val algo = client.algo("algo://wilsonmar/RGB2ColorName/0.1.23")
val result = algo.pipeJson(input)
View Scala Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(output) {
View Javascript Docs
using Algorithmia;

var input = "{{input | formatInput:"cs"}}";
var client = new Client("YOUR_API_KEY");
var algorithm = client.algo("algo://wilsonmar/RGB2ColorName/0.1.23");
var response = algorithm.pipe<object>(input);
View .NET/C# Docs
var input = {{input | formatInput:"javascript"}};
           .then(function(response) {
View NodeJS Docs
import Algorithmia

input = {{input | formatInput:"python"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('wilsonmar/RGB2ColorName/0.1.23')
print algo.pipe(input)
View Python Docs

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("wilsonmar/RGB2ColorName/0.1.23")
result <- algo$pipe(input)$result
View R Docs
require 'algorithmia'

input = {{input | formatInput:"ruby"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('wilsonmar/RGB2ColorName/0.1.23')
puts algo.pipe(input).result
View Ruby Docs
use algorithmia::Algorithmia;

let input = {{input | formatInput:"rust"}};
let client = Algorithmia::client("YOUR_API_KEY");
let algo = client.algo("wilsonmar/RGB2ColorName/0.1.23");
let response = algo.pipe(input);
View Rust Docs
import Algorithmia

let input = "{{input | formatInput:"swift"}}";
let client = Algorithmia.client(simpleKey: "YOUR_API_KEY")
let algo = client.algo(algoUri: "wilsonmar/RGB2ColorName/0.1.23") { resp, error in
View Swift Docs
  • {{comment.username}}