Random Color

A quick and easy way to retrieve a randomly generated color. Includes both the hex and RGB.

Endpoint

  • URL: https://api.erensko.xyz/v1/random-color

  • Method: GET

  • Description: Generates a random color and returns the color in both hex and RGB formats.

Headers

Key
Value

Authorization

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

Request Example

GET https://api.erensko.xyz/v1/random-color

Response Example

{
  "hex": "#FF5733",
  "hexNoHash": "FF5733",
  "rgb": "rgb(255, 87, 51)",
  "rgbValues": [
    {
      "red": 255,
      "green": 87,
      "blue": 51
    }
  ]
}

Usage Notes

  • The endpoint is ideal for generating random colors on-the-fly and can be easily integrated into front-end or back-end applications.

Last updated