# Color

## Random Color

<mark style="color:blue;">`GET`</mark> `https://api.fluxpoint.dev/color/random`

Get a random color.

#### Headers

| Name                                            | Type | Description                                           |
| ----------------------------------------------- | ---- | ----------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | Your API token here <https://fluxpoint.dev/api/token> |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "success": true,
    "code": 200,
    "message": "",
    "hex": "#ff0000",
    "name": "Red",
    "r": 255,
    "g": 0,
    "b": 0,
}
```

{% endtab %}
{% endtabs %}

## Color Info

<mark style="color:blue;">`GET`</mark> `https://api.fluxpoint.dev/color/info?name=red`

Get color info from name, hex or rgb value.

#### Query Parameters

| Name         | Type   | Description             |
| ------------ | ------ | ----------------------- |
| name/hex/rgb | String | Get info for this color |

#### Headers

| Name                                            | Type | Description                                           |
| ----------------------------------------------- | ---- | ----------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | Your API token here <https://fluxpoint.dev/api/token> |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "success": true,
    "code": 200,
    "message": "",
    "hex": "#ff0000",
    "name": "Red",
    "r": 255,
    "g": 0,
    "b": 0,
}
```

{% endtab %}
{% endtabs %}
