Skip to content
A simple API that converts color values
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
helpers
v1
.gitignore
.nowignore
LICENSE Add license Jul 9, 2019
README.md Add request URLs for color name, HEX and HSL Jul 18, 2019
index.js Add route for the API documentation (redirect) Jul 17, 2019
now.json
package-lock.json
package.json Add a script that starts the dev mode Jul 9, 2019

README.md

ColorConverter API

API MIT License Code size open issues closed issues Developer


Requests

request   To convert the colors, use the following get requests. You will get the response in JSON format.

Convert RGB https://color-converter.com/v1/convert/rgb?color=25,25,112

{
    "colorname": "midnightblue",
    "hex": "191970",
    "hsl": {
        "hue": 240,
        "saturation": 64,
        "luminance": 27
    },
    "rgb": {
        "red": 25,
        "green": 25,
        "blue": 112
    }
}

Convert color name https://color-converter.com/v1/convert/colorname?color=midnightblue

Convert HEX https://color-converter.com/v1/convert/hex?color=midnightblue

Convert HSL https://color-converter.com/v1/convert/hsl?color=240,64,27

Each of the following requests returns only one value:

Convert RGB to HSL https://color-converter.com/v1/convert/rgb-to-hsl?color=25,25,112

Convert HSL to RGB https://color-converter.com/v1/convert/hsl-to-rgb?color=240,64,27

Convert color name to RGB https://color-converter.com/v1/convert/colorname-to-rgb?color=midnightblue

Convert RGB to color name https://color-converter.com/v1/convert/rgb-to-colorname?color=25,25,112

Convert RGB to HEX https://color-converter.com/v1/convert/rgb-to-hex?color=25,25,112

Convert HEX to RGB https://color-converter.com/v1/convert/hex-to-rgb?color=191970


License

Licensed under the MIT License.


© Peter R. Stuhlmann Webentwicklung. All rights reserved.

You can’t perform that action at this time.