X.com

Developer resource

Solid Color API Documentation

Use the Solid Background color API to fetch named colors, HEX/RGB/HSL values, canonical pages, and solid background image URLs.

Endpoints

GET/api/colors

Returns the primary color list with names, slugs, HEX, RGB, HSL, canonical URLs, and image URLs.

GET/api/colors/red

Returns one color by slug. Unknown color slugs return a 404 JSON response.

GET/api/pack?collection=blue-backgrounds&size=hd&format=png

Returns a ZIP of PNG backgrounds for a focused SEO collection and preset size.

Color response fields

name, slug
Human-readable color name and URL-safe slug.
hex, rgb, hsl
Copy-ready values for CSS, design tools, and exports.
url, images
Canonical color page plus indexable PNG background URLs.

Example response

{
  "name": "Red",
  "slug": "red",
  "hex": "#FF0000",
  "rgb": "rgb(255, 0, 0)",
  "hsl": { "h": 0, "s": 100, "l": 50, "css": "hsl(0, 100%, 50%)" },
  "url": "https://www.solidbackground.io/colors/red",
  "images": [
    {
      "preset": "hd",
      "width": 1920,
      "height": 1080,
      "format": "png",
      "url": "https://www.solidbackground.io/backgrounds/solid-red-background-ff0000-1920x1080.png"
    }
  ]
}

Color directory

Browse every primary color page with human-friendly names.

Blue backgrounds

See a focused collection with ZIP packs and direct PNG links.

Image sitemap

XML list of primary solid background image URLs.