| Type | Example value | Note | Possible requests |
|---|---|---|---|
| Keyword | aquamarine | https://color.serialif.com/aquamarine | |
| https://color.serialif.com/keyword=aquamarine | |||
| HEX | #55667788 | without # | https://color.serialif.com/55667788 |
| https://color.serialif.com/hex=55667788 | |||
| RGB | rgb(85, 102, 119) | without rgb, ( ), or spaces | https://color.serialif.com/85,102,119 |
| https://color.serialif.com/rgb=85,102,119 | |||
| RGBA | rgba(85, 102, 119, 0.53) | without rgba, ( ), or spaces | https://color.serialif.com/85,102,119,0.53 |
| https://color.serialif.com/rgb=85,102,119,0.53 | |||
| https://color.serialif.com/rgba=85,102,119,0.53 | |||
| HSL | hsl(85, 102, 119) | without hsl, ( ), or spaces | https://color.serialif.com/hsl=85,102,119 |
| HSLA | hsla(85, 102, 119, 0.53) | without hsla, ( ), or spaces | https://color.serialif.com/hsl=85,102,119,0.53 |
| https://color.serialif.com/hsla=85,102,119,0.53 |
{
"base": {...},
"base_without_alpha": {...},
"base_without_alpha_contrasted_text": {...},
"complementary": {...},
"complementary_without_alpha": {...},
"complementary_without_alpha_contrasted_text": {...},
"grayscale": {...},
"grayscale_without_alpha": {...},
"grayscale_without_alpha_contrasted_text": {...}
}
{
"keyword": "aquamarine",
"hex": {
"value": "#7fffd4",
"composition": {
"red": "7f",
"green": "ff",
"blue": "d4"
}
},
"rgb": {
"value": "rgb(127, 255, 212)",
"composition": {
"red": 127,
"green": 255,
"blue": 212
}
},
"hsl": {
"value": "hsl(160, 100%, 75%)",
"composition": {
"hue": 160,
"saturation": 100,
"lightness": 75
}
},
"hsl_raw": {
"value": "hsl(159.84375, 100%, 74.90196%)",
"composition": {
"hue": 159.84375,
"saturation": 100,
"lightness": 74.90196
}
}
}
{
"status": "error",
"error": {
"type": "wrong color format",
"value": "yellou",
"message": "not a valid KEYWORD color"
}
}
{
"status": "success",
"base": {
"keyword": "",
"hex": {
"value": "#a6ba1171",
"composition": {
"red": "a6",
"green": "ba",
"blue": "11",
"alpha": "71"
}
},
"rgba": {
"value": "rgba(166, 186, 17, 0.44)",
"composition": {
"red": 166,
"green": 186,
"blue": 17,
"alpha": 0.44314
}
},
"hsla": {
"value": "hsla(67, 83%, 40%, 0.44)",
"composition": {
"hue": 67,
"saturation": 83,
"lightness": 40,
"alpha": 0.44314
}
},
"hsla_raw": {
"value": "hsla(67.10059, 83.25123%, 39.80392%, 0.44)",
"composition": {
"hue": 67.10059,
"saturation": 83.25123,
"lightness": 39.80392,
"alpha": 0.44314
}
}
},
"base_without_alpha": {
"keyword": "",
"hex": {
"value": "#a6ba11",
"composition": {
"red": "a6",
"green": "ba",
"blue": "11"
}
},
"rgb": {
"value": "rgb(166, 186, 17)",
"composition": {
"red": 166,
"green": 186,
"blue": 17
}
},
"hsl": {
"value": "hsl(67, 83%, 40%)",
"composition": {
"hue": 67,
"saturation": 83,
"lightness": 40
}
},
"hsl_raw": {
"value": "hsl(67.10059, 83.25123%, 39.80392%)",
"composition": {
"hue": 67.10059,
"saturation": 83.25123,
"lightness": 39.80392
}
}
},
"base_without_alpha_contrasted_text": {
"keyword": "black",
"hex": {
"value": "#000000",
"composition": {
"red": "00",
"green": "00",
"blue": "00"
}
},
"rgb": {
"value": "rgb(0, 0, 0)",
"composition": {
"red": 0,
"green": 0,
"blue": 0
}
},
"hsl": {
"value": "hsl(0, 0%, 0%)",
"composition": {
"hue": 0,
"saturation": 0,
"lightness": 0
}
},
"hsl_raw": {
"value": "hsl(0, 0%, 0%)",
"composition": {
"hue": 0,
"saturation": 0,
"lightness": 0
}
}
},
"complementary": {
"keyword": "",
"hex": {
"value": "#5945ee71",
"composition": {
"red": "59",
"green": "45",
"blue": "ee",
"alpha": "71"
}
},
"rgba": {
"value": "rgba(89, 69, 238, 0.44)",
"composition": {
"red": 89,
"green": 69,
"blue": 238,
"alpha": 0.44314
}
},
"hsla": {
"value": "hsla(247, 83%, 60%, 0.44)",
"composition": {
"hue": 247,
"saturation": 83,
"lightness": 60,
"alpha": 0.44314
}
},
"hsla_raw": {
"value": "hsla(247.10059, 83.25123%, 60.19608%, 0.44)",
"composition": {
"hue": 247.10059,
"saturation": 83.25123,
"lightness": 60.19608,
"alpha": 0.44314
}
}
},
"complementary_without_alpha": {
"keyword": "",
"hex": {
"value": "#5945ee",
"composition": {
"red": "59",
"green": "45",
"blue": "ee"
}
},
"rgb": {
"value": "rgb(89, 69, 238)",
"composition": {
"red": 89,
"green": 69,
"blue": 238
}
},
"hsl": {
"value": "hsl(247, 83%, 60%)",
"composition": {
"hue": 247,
"saturation": 83,
"lightness": 60
}
},
"hsl_raw": {
"value": "hsl(247.10059, 83.25123%, 60.19608%)",
"composition": {
"hue": 247.10059,
"saturation": 83.25123,
"lightness": 60.19608
}
}
},
"complementary_without_alpha_contrasted_text": {
"keyword": "white",
"hex": {
"value": "#ffffff",
"composition": {
"red": "ff",
"green": "ff",
"blue": "ff"
}
},
"rgb": {
"value": "rgb(255, 255, 255)",
"composition": {
"red": 255,
"green": 255,
"blue": 255
}
},
"hsl": {
"value": "hsl(0, 0%, 100%)",
"composition": {
"hue": 0,
"saturation": 0,
"lightness": 100
}
},
"hsl_raw": {
"value": "hsl(0, 0%, 100%)",
"composition": {
"hue": 0,
"saturation": 0,
"lightness": 100
}
}
},
"grayscale": {
"keyword": "",
"hex": {
"value": "#65656571",
"composition": {
"red": "65",
"green": "65",
"blue": "65",
"alpha": "71"
}
},
"rgba": {
"value": "rgba(101, 101, 101, 0.44)",
"composition": {
"red": 101,
"green": 101,
"blue": 101,
"alpha": 0.44314
}
},
"hsla": {
"value": "hsla(67, 0%, 40%, 0.44)",
"composition": {
"hue": 67,
"saturation": 0,
"lightness": 40,
"alpha": 0.44314
}
},
"hsla_raw": {
"value": "hsla(67.10059, 0%, 39.80392%, 0.44)",
"composition": {
"hue": 67.10059,
"saturation": 0,
"lightness": 39.80392,
"alpha": 0.44314
}
}
},
"grayscale_without_alpha": {
"keyword": "",
"hex": {
"value": "#656565",
"composition": {
"red": "65",
"green": "65",
"blue": "65"
}
},
"rgb": {
"value": "rgb(101, 101, 101)",
"composition": {
"red": 101,
"green": 101,
"blue": 101
}
},
"hsl": {
"value": "hsl(67, 0%, 40%)",
"composition": {
"hue": 67,
"saturation": 0,
"lightness": 40
}
},
"hsl_raw": {
"value": "hsl(67.10059, 0%, 39.80392%)",
"composition": {
"hue": 67.10059,
"saturation": 0,
"lightness": 39.80392
}
}
},
"grayscale_without_alpha_contrasted_text": {
"keyword": "black",
"hex": {
"value": "#000000",
"composition": {
"red": "00",
"green": "00",
"blue": "00"
}
},
"rgb": {
"value": "rgb(0, 0, 0)",
"composition": {
"red": 0,
"green": 0,
"blue": 0
}
},
"hsl": {
"value": "hsl(0, 0%, 0%)",
"composition": {
"hue": 0,
"saturation": 0,
"lightness": 0
}
},
"hsl_raw": {
"value": "hsl(0, 0%, 0%)",
"composition": {
"hue": 0,
"saturation": 0,
"lightness": 0
}
}
}
}