> For the complete documentation index, see [llms.txt](https://docs.openli.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openli.com/docs/cookie-consent-management/cookie-widget/how-to-get-color-codes.md).

# How to get color codes

## Hex colors

Designers use HEX colors in web design. A HEX color is a six-digit combination of numbers and letters defined by its mix of red, green and blue. You might have seen them if you use CSS to style your website.&#x20;

### Use a color picker to get HEX code

If you do not know the code of your selected color, we recommend [htmlcolorcodes.com](https://htmlcolorcodes.com/) to find the color:

![On htmlcolorcodes.com you can use their color picker to find the HEX code for your selected color. ](/files/-MOVbuzaKfBM22UQ8jKF)

Once you have found your desired color, simply copy the code next to the **#**-sign:

![We copy the color green with HEX code #56B682](/files/-MOVdEkDeh5EccAocil8)

Now all you need to do is to paste it in the Openli Widget builder!

### Paste the color in the Widget builder

To use this code, paste in the appropriate field in the widget builder:&#x20;

![We now changed the border color to HEX](/files/-MOVeHuVIFqJRssJU6b6)

## Done!

That's it! Congratulations with your awesome-looking widget! Pat your self on the back and know that our privacy mascot Li is proud of you.&#x20;

![](/files/zs6pyohoGPpemrZGhYeD)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.openli.com/docs/cookie-consent-management/cookie-widget/how-to-get-color-codes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
