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": "#06001946",
"composition": {
"red": "06",
"green": "00",
"blue": "19",
"alpha": "46"
}
},
"rgba": {
"value": "rgba(6, 0, 25, 0.27)",
"composition": {
"red": 6,
"green": 0,
"blue": 25,
"alpha": 0.27451
}
},
"hsla": {
"value": "hsla(254, 100%, 5%, 0.27)",
"composition": {
"hue": 254,
"saturation": 100,
"lightness": 5,
"alpha": 0.27451
}
},
"hsla_raw": {
"value": "hsla(254.4, 100%, 4.90196%, 0.27)",
"composition": {
"hue": 254.4,
"saturation": 100,
"lightness": 4.90196,
"alpha": 0.27451
}
}
},
"base_without_alpha": {
"keyword": "",
"hex": {
"value": "#060019",
"composition": {
"red": "06",
"green": "00",
"blue": "19"
}
},
"rgb": {
"value": "rgb(6, 0, 25)",
"composition": {
"red": 6,
"green": 0,
"blue": 25
}
},
"hsl": {
"value": "hsl(254, 100%, 5%)",
"composition": {
"hue": 254,
"saturation": 100,
"lightness": 5
}
},
"hsl_raw": {
"value": "hsl(254.4, 100%, 4.90196%)",
"composition": {
"hue": 254.4,
"saturation": 100,
"lightness": 4.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": "#f9ffe646",
"composition": {
"red": "f9",
"green": "ff",
"blue": "e6",
"alpha": "46"
}
},
"rgba": {
"value": "rgba(249, 255, 230, 0.27)",
"composition": {
"red": 249,
"green": 255,
"blue": 230,
"alpha": 0.27451
}
},
"hsla": {
"value": "hsla(74, 100%, 95%, 0.27)",
"composition": {
"hue": 74,
"saturation": 100,
"lightness": 95,
"alpha": 0.27451
}
},
"hsla_raw": {
"value": "hsla(74.4, 100%, 95.09804%, 0.27)",
"composition": {
"hue": 74.4,
"saturation": 100,
"lightness": 95.09804,
"alpha": 0.27451
}
}
},
"complementary_without_alpha": {
"keyword": "",
"hex": {
"value": "#f9ffe6",
"composition": {
"red": "f9",
"green": "ff",
"blue": "e6"
}
},
"rgb": {
"value": "rgb(249, 255, 230)",
"composition": {
"red": 249,
"green": 255,
"blue": 230
}
},
"hsl": {
"value": "hsl(74, 100%, 95%)",
"composition": {
"hue": 74,
"saturation": 100,
"lightness": 95
}
},
"hsl_raw": {
"value": "hsl(74.4, 100%, 95.09804%)",
"composition": {
"hue": 74.4,
"saturation": 100,
"lightness": 95.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": "#0c0c0c46",
"composition": {
"red": "0c",
"green": "0c",
"blue": "0c",
"alpha": "46"
}
},
"rgba": {
"value": "rgba(12, 12, 12, 0.27)",
"composition": {
"red": 12,
"green": 12,
"blue": 12,
"alpha": 0.27451
}
},
"hsla": {
"value": "hsla(254, 0%, 5%, 0.27)",
"composition": {
"hue": 254,
"saturation": 0,
"lightness": 5,
"alpha": 0.27451
}
},
"hsla_raw": {
"value": "hsla(254.4, 0%, 4.90196%, 0.27)",
"composition": {
"hue": 254.4,
"saturation": 0,
"lightness": 4.90196,
"alpha": 0.27451
}
}
},
"grayscale_without_alpha": {
"keyword": "",
"hex": {
"value": "#0c0c0c",
"composition": {
"red": "0c",
"green": "0c",
"blue": "0c"
}
},
"rgb": {
"value": "rgb(12, 12, 12)",
"composition": {
"red": 12,
"green": 12,
"blue": 12
}
},
"hsl": {
"value": "hsl(254, 0%, 5%)",
"composition": {
"hue": 254,
"saturation": 0,
"lightness": 5
}
},
"hsl_raw": {
"value": "hsl(254.4, 0%, 4.90196%)",
"composition": {
"hue": 254.4,
"saturation": 0,
"lightness": 4.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
}
}
}
}