# Colors

Many components accept a color parameter. Some color parameters allow you to select from a preset style like success and error. Other color parameters accept a `DashboardColor` object that can define a specific color using a name, hex value or RGB value.

Below is an example of each type of configuration. A list of [known colors can be found here](https://learn.microsoft.com/en-us/dotnet/api/system.drawing.knowncolor?view=net-9.0).

```powershell
# Hex color 
New-UDIcon -Icon User -Color '#2596be'

# RGB values
New-UDIcon -Icon User -Color 'rgb(37, 150, 190)'

# Anything Color.FromName knows
New-UDIcon -Icon User -Color 'gray'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powershelluniversal.com/apps/themes/colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
