| 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": "#7906466e",
"composition": {
"red": "79",
"green": "06",
"blue": "46",
"alpha": "6e"
}
},
"rgba": {
"value": "rgba(121, 6, 70, 0.43)",
"composition": {
"red": 121,
"green": 6,
"blue": 70,
"alpha": 0.43137
}
},
"hsla": {
"value": "hsla(327, 91%, 25%, 0.43)",
"composition": {
"hue": 327,
"saturation": 91,
"lightness": 25,
"alpha": 0.43137
}
},
"hsla_raw": {
"value": "hsla(326.6087, 90.55118%, 24.90196%, 0.43)",
"composition": {
"hue": 326.6087,
"saturation": 90.55118,
"lightness": 24.90196,
"alpha": 0.43137
}
}
},
"base_without_alpha": {
"keyword": "",
"hex": {
"value": "#790646",
"composition": {
"red": "79",
"green": "06",
"blue": "46"
}
},
"rgb": {
"value": "rgb(121, 6, 70)",
"composition": {
"red": 121,
"green": 6,
"blue": 70
}
},
"hsl": {
"value": "hsl(327, 91%, 25%)",
"composition": {
"hue": 327,
"saturation": 91,
"lightness": 25
}
},
"hsl_raw": {
"value": "hsl(326.6087, 90.55118%, 24.90196%)",
"composition": {
"hue": 326.6087,
"saturation": 90.55118,
"lightness": 24.90196
}
}
},
"base_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
}
}
},
"complementary": {
"keyword": "",
"hex": {
"value": "#86f9b96e",
"composition": {
"red": "86",
"green": "f9",
"blue": "b9",
"alpha": "6e"
}
},
"rgba": {
"value": "rgba(134, 249, 185, 0.43)",
"composition": {
"red": 134,
"green": 249,
"blue": 185,
"alpha": 0.43137
}
},
"hsla": {
"value": "hsla(147, 91%, 75%, 0.43)",
"composition": {
"hue": 147,
"saturation": 91,
"lightness": 75,
"alpha": 0.43137
}
},
"hsla_raw": {
"value": "hsla(146.6087, 90.55118%, 75.09804%, 0.43)",
"composition": {
"hue": 146.6087,
"saturation": 90.55118,
"lightness": 75.09804,
"alpha": 0.43137
}
}
},
"complementary_without_alpha": {
"keyword": "",
"hex": {
"value": "#86f9b9",
"composition": {
"red": "86",
"green": "f9",
"blue": "b9"
}
},
"rgb": {
"value": "rgb(134, 249, 185)",
"composition": {
"red": 134,
"green": 249,
"blue": 185
}
},
"hsl": {
"value": "hsl(147, 91%, 75%)",
"composition": {
"hue": 147,
"saturation": 91,
"lightness": 75
}
},
"hsl_raw": {
"value": "hsl(146.6087, 90.55118%, 75.09804%)",
"composition": {
"hue": 146.6087,
"saturation": 90.55118,
"lightness": 75.09804
}
}
},
"complementary_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
}
}
},
"grayscale": {
"keyword": "",
"hex": {
"value": "#3f3f3f6e",
"composition": {
"red": "3f",
"green": "3f",
"blue": "3f",
"alpha": "6e"
}
},
"rgba": {
"value": "rgba(63, 63, 63, 0.43)",
"composition": {
"red": 63,
"green": 63,
"blue": 63,
"alpha": 0.43137
}
},
"hsla": {
"value": "hsla(327, 0%, 25%, 0.43)",
"composition": {
"hue": 327,
"saturation": 0,
"lightness": 25,
"alpha": 0.43137
}
},
"hsla_raw": {
"value": "hsla(326.6087, 0%, 24.90196%, 0.43)",
"composition": {
"hue": 326.6087,
"saturation": 0,
"lightness": 24.90196,
"alpha": 0.43137
}
}
},
"grayscale_without_alpha": {
"keyword": "",
"hex": {
"value": "#3f3f3f",
"composition": {
"red": "3f",
"green": "3f",
"blue": "3f"
}
},
"rgb": {
"value": "rgb(63, 63, 63)",
"composition": {
"red": 63,
"green": 63,
"blue": 63
}
},
"hsl": {
"value": "hsl(327, 0%, 25%)",
"composition": {
"hue": 327,
"saturation": 0,
"lightness": 25
}
},
"hsl_raw": {
"value": "hsl(326.6087, 0%, 24.90196%)",
"composition": {
"hue": 326.6087,
"saturation": 0,
"lightness": 24.90196
}
}
},
"grayscale_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
}
}
}
}