| 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": "#21334439",
"composition": {
"red": "21",
"green": "33",
"blue": "44",
"alpha": "39"
}
},
"rgba": {
"value": "rgba(33, 51, 68, 0.22)",
"composition": {
"red": 33,
"green": 51,
"blue": 68,
"alpha": 0.22353
}
},
"hsla": {
"value": "hsla(209, 35%, 20%, 0.22)",
"composition": {
"hue": 209,
"saturation": 35,
"lightness": 20,
"alpha": 0.22353
}
},
"hsla_raw": {
"value": "hsla(209.14286, 34.65347%, 19.80392%, 0.22)",
"composition": {
"hue": 209.14286,
"saturation": 34.65347,
"lightness": 19.80392,
"alpha": 0.22353
}
}
},
"base_without_alpha": {
"keyword": "",
"hex": {
"value": "#213344",
"composition": {
"red": "21",
"green": "33",
"blue": "44"
}
},
"rgb": {
"value": "rgb(33, 51, 68)",
"composition": {
"red": 33,
"green": 51,
"blue": 68
}
},
"hsl": {
"value": "hsl(209, 35%, 20%)",
"composition": {
"hue": 209,
"saturation": 35,
"lightness": 20
}
},
"hsl_raw": {
"value": "hsl(209.14286, 34.65347%, 19.80392%)",
"composition": {
"hue": 209.14286,
"saturation": 34.65347,
"lightness": 19.80392
}
}
},
"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": "#deccbb39",
"composition": {
"red": "de",
"green": "cc",
"blue": "bb",
"alpha": "39"
}
},
"rgba": {
"value": "rgba(222, 204, 187, 0.22)",
"composition": {
"red": 222,
"green": 204,
"blue": 187,
"alpha": 0.22353
}
},
"hsla": {
"value": "hsla(29, 35%, 80%, 0.22)",
"composition": {
"hue": 29,
"saturation": 35,
"lightness": 80,
"alpha": 0.22353
}
},
"hsla_raw": {
"value": "hsla(29.14286, 34.65347%, 80.19608%, 0.22)",
"composition": {
"hue": 29.14286,
"saturation": 34.65347,
"lightness": 80.19608,
"alpha": 0.22353
}
}
},
"complementary_without_alpha": {
"keyword": "",
"hex": {
"value": "#deccbb",
"composition": {
"red": "de",
"green": "cc",
"blue": "bb"
}
},
"rgb": {
"value": "rgb(222, 204, 187)",
"composition": {
"red": 222,
"green": 204,
"blue": 187
}
},
"hsl": {
"value": "hsl(29, 35%, 80%)",
"composition": {
"hue": 29,
"saturation": 35,
"lightness": 80
}
},
"hsl_raw": {
"value": "hsl(29.14286, 34.65347%, 80.19608%)",
"composition": {
"hue": 29.14286,
"saturation": 34.65347,
"lightness": 80.19608
}
}
},
"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": "#32323239",
"composition": {
"red": "32",
"green": "32",
"blue": "32",
"alpha": "39"
}
},
"rgba": {
"value": "rgba(50, 50, 50, 0.22)",
"composition": {
"red": 50,
"green": 50,
"blue": 50,
"alpha": 0.22353
}
},
"hsla": {
"value": "hsla(209, 0%, 20%, 0.22)",
"composition": {
"hue": 209,
"saturation": 0,
"lightness": 20,
"alpha": 0.22353
}
},
"hsla_raw": {
"value": "hsla(209.14286, 0%, 19.80392%, 0.22)",
"composition": {
"hue": 209.14286,
"saturation": 0,
"lightness": 19.80392,
"alpha": 0.22353
}
}
},
"grayscale_without_alpha": {
"keyword": "",
"hex": {
"value": "#323232",
"composition": {
"red": "32",
"green": "32",
"blue": "32"
}
},
"rgb": {
"value": "rgb(50, 50, 50)",
"composition": {
"red": 50,
"green": 50,
"blue": 50
}
},
"hsl": {
"value": "hsl(209, 0%, 20%)",
"composition": {
"hue": 209,
"saturation": 0,
"lightness": 20
}
},
"hsl_raw": {
"value": "hsl(209.14286, 0%, 19.80392%)",
"composition": {
"hue": 209.14286,
"saturation": 0,
"lightness": 19.80392
}
}
},
"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
}
}
}
}