# Color
Represents an RGB color value.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## Color interface

Represents an RGB color value.

**Signature:**

```typescript
interface Color
```

## Remarks

Color values are in the range \[0, 255] for each channel.

## Example

```ts
const red: Color = { r: 255, g: 0, b: 0 };
const white: Color = { r: 255, g: 255, b: 255 };
const black: Color = { r: 0, g: 0, b: 0 };
```

## Properties

<table>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Modifiers
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [b](/en/creator-api/values/color/b)
      </td>

      <td />

      <td>
        number
      </td>

      <td>
        Blue channel value (0 to 255)
      </td>
    </tr>

    <tr>
      <td>
        [g](/en/creator-api/values/color/g)
      </td>

      <td />

      <td>
        number
      </td>

      <td>
        Green channel value (0 to 255)
      </td>
    </tr>

    <tr>
      <td>
        [r](/en/creator-api/values/color/r)
      </td>

      <td />

      <td>
        number
      </td>

      <td>
        Red channel value (0 to 255)
      </td>
    </tr>
  </tbody>
</table>
