← Þróunarverkfæri

Litaupplýsingar

GET /colors/:hex

Fáðu comprehensive information about hvaða ... sem er color by its hex code. Skilar closest named color, RGB, HSL, HSV, and CMYK values, contrast suggestions, and a preview myndaslóð. Gagnlegt fyrir design verkfæri, accessibility checkers that need color contrast data, color conversion utilities, and educational forrit teaching color theory.

Breytur

hex nauðsynlegt

Hex color

Dæmi um fyrirspurnir

Grunnnotkun
curl https://nordapi.ee/api/v1/colors/4287f5
Info about a blue color
curl https://nordapi.ee/api/v1/colors/4287f5
Info about pure red
curl https://nordapi.ee/api/v1/colors/ff0000
Info about a dark green
curl https://nordapi.ee/api/v1/colors/2ecc71

Lifandi svar

{
  "data": {
    "cmyk": "cmyk(73, 45, 0, 4)",
    "contrast": "#000000",
    "exact_match": false,
    "hex": "#4287F5",
    "hsl": "hsl(217, 90%, 61%)",
    "hsv": "hsv(217, 73%, 96%)",
    "image": "https://www.thecolorapi.com/id?format=svg&named=false&hex=4287F5",
    "image_named": "https://www.thecolorapi.com/id?format=svg&hex=4287F5",
    "name": "Blueberry",
    "rgb": "rgb(66, 135, 245)"
  },
  "success": true
}