Convert, manipulate, and generate palettes for any colour. 13 formats including Hex, RGB, HSL, HSV, HWB, CMYK, CIE XYZ/LAB/LCH, Wavelength, Kelvin, and 148 CSS names.
Convert: GET /api/convert.php?colour=#FF5733&to=rgb
Palette: GET /api/palette.php?colour=#FF5733&mode=triadic
Manipulate: GET /api/manipulate.php?colour=#FF5733&action=lighten&amount=20
Contrast: GET /api/manipulate.php?colour=#FF5733&colour2=#FFFFFF&action=contrast
Mix: GET /api/manipulate.php?colour=#FF5733&colour2=#3498DB&action=mix&amount=50
Example curl:
curl "https://colour.api.thenetwork.ink/api/convert.php?colour=%23FF5733"
Input formats: hex, rgb, hsl, hsv, hwb, cmyk, lab(), lch(), wavelength (580nm), kelvin (6500K), decimal, CSS names (148)
Output formats (to=): hex, rgb, hsl, hsv, hwb, cmyk, xyz, lab, lch, wavelength, kelvin, decimal, name, all
Palette modes: complementary, analogous, triadic, tetradic, split, monochromatic, shades, tints
Actions: lighten, darken, saturate, desaturate, invert, grayscale, mix, contrast
Colour science: CIE XYZ (D65), CIE LAB, CIE LCH, wavelength, colour temperature, colour blindness simulation