| 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": "#ebeba4ab",
"composition": {
"red": "eb",
"green": "eb",
"blue": "a4",
"alpha": "ab"
}
},
"rgba": {
"value": "rgba(235, 235, 164, 0.67)",
"composition": {
"red": 235,
"green": 235,
"blue": 164,
"alpha": 0.67059
}
},
"hsla": {
"value": "hsla(60, 64%, 78%, 0.67)",
"composition": {
"hue": 60,
"saturation": 64,
"lightness": 78,
"alpha": 0.67059
}
},
"hsla_raw": {
"value": "hsla(60, 63.96396%, 78.23529%, 0.67)",
"composition": {
"hue": 60,
"saturation": 63.96396,
"lightness": 78.23529,
"alpha": 0.67059
}
}
},
"base_without_alpha": {
"keyword": "",
"hex": {
"value": "#ebeba4",
"composition": {
"red": "eb",
"green": "eb",
"blue": "a4"
}
},
"rgb": {
"value": "rgb(235, 235, 164)",
"composition": {
"red": 235,
"green": 235,
"blue": 164
}
},
"hsl": {
"value": "hsl(60, 64%, 78%)",
"composition": {
"hue": 60,
"saturation": 64,
"lightness": 78
}
},
"hsl_raw": {
"value": "hsl(60, 63.96396%, 78.23529%)",
"composition": {
"hue": 60,
"saturation": 63.96396,
"lightness": 78.23529
}
}
},
"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": "#14145bab",
"composition": {
"red": "14",
"green": "14",
"blue": "5b",
"alpha": "ab"
}
},
"rgba": {
"value": "rgba(20, 20, 91, 0.67)",
"composition": {
"red": 20,
"green": 20,
"blue": 91,
"alpha": 0.67059
}
},
"hsla": {
"value": "hsla(240, 64%, 22%, 0.67)",
"composition": {
"hue": 240,
"saturation": 64,
"lightness": 22,
"alpha": 0.67059
}
},
"hsla_raw": {
"value": "hsla(240, 63.96396%, 21.76471%, 0.67)",
"composition": {
"hue": 240,
"saturation": 63.96396,
"lightness": 21.76471,
"alpha": 0.67059
}
}
},
"complementary_without_alpha": {
"keyword": "",
"hex": {
"value": "#14145b",
"composition": {
"red": "14",
"green": "14",
"blue": "5b"
}
},
"rgb": {
"value": "rgb(20, 20, 91)",
"composition": {
"red": 20,
"green": 20,
"blue": 91
}
},
"hsl": {
"value": "hsl(240, 64%, 22%)",
"composition": {
"hue": 240,
"saturation": 64,
"lightness": 22
}
},
"hsl_raw": {
"value": "hsl(240, 63.96396%, 21.76471%)",
"composition": {
"hue": 240,
"saturation": 63.96396,
"lightness": 21.76471
}
}
},
"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": "#c7c7c7ab",
"composition": {
"red": "c7",
"green": "c7",
"blue": "c7",
"alpha": "ab"
}
},
"rgba": {
"value": "rgba(199, 199, 199, 0.67)",
"composition": {
"red": 199,
"green": 199,
"blue": 199,
"alpha": 0.67059
}
},
"hsla": {
"value": "hsla(60, 0%, 78%, 0.67)",
"composition": {
"hue": 60,
"saturation": 0,
"lightness": 78,
"alpha": 0.67059
}
},
"hsla_raw": {
"value": "hsla(60, 0%, 78.23529%, 0.67)",
"composition": {
"hue": 60,
"saturation": 0,
"lightness": 78.23529,
"alpha": 0.67059
}
}
},
"grayscale_without_alpha": {
"keyword": "",
"hex": {
"value": "#c7c7c7",
"composition": {
"red": "c7",
"green": "c7",
"blue": "c7"
}
},
"rgb": {
"value": "rgb(199, 199, 199)",
"composition": {
"red": 199,
"green": 199,
"blue": 199
}
},
"hsl": {
"value": "hsl(60, 0%, 78%)",
"composition": {
"hue": 60,
"saturation": 0,
"lightness": 78
}
},
"hsl_raw": {
"value": "hsl(60, 0%, 78.23529%)",
"composition": {
"hue": 60,
"saturation": 0,
"lightness": 78.23529
}
}
},
"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
}
}
}
}