---
title: "Color"
description: "Color"
url: "https://www.contentstack.com/docs/developers/sdks/content-delivery-sdk/swift/reference/color"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-09-06"
---

# Color

## Color

The bg-color parameter lets you set a backgroud color for the given image.

Hexadecimal value should be 3-digit or 6-digit.

Red, Blue, Green value which defines the intensity of the corresponding color, with the value ranging anywhere between 0 and 255 for each.

Red, Blue, Green value which defines the intensity of the corresponding color, with the value ranging anywhere between 0 and 255 for each. The alpha value defines the transparency, with 0.0 being fully transparent and 1.0 being completely opaque.

## Color | Swift Delivery SDK | Contentstack

Color lets you set a background color for a given image using the bg-color parameter.