Integer to Hex

This endpoint converts a color integer into HEX format.

Endpoint

  • URL: https://api.erensko.xyz/v1/integer-to-hex

  • Method: GET

  • Description: Converts a a given color integer into HEX structure.

URL Parameters

Key
Value

integer

The integer color code to convert.

Headers

Authorization

Your own personal API key, create one by clicking here. This is required.

Request Example

GET https://api.erensko.xyz/v1/integer-to-hex?integer=16777215

Example Response:

{
  "hex": "#FFFFFF",
  "original": "16777215"
}

Last updated