Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (52 sloc) 3.07 KB

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.