> For the complete documentation index, see [llms.txt](https://easy-draw.joemazzone.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easy-draw.joemazzone.net/python/module-reference/colors.md).

# Colors

\
There are 3 ways you can use colors in Easy Draw:

## 1. Name of the Color

The easiest way to represent an color is by using the color's name in a string.&#x20;

Examples:

```python
color = "red"
color = "green"
color = "blue"
color = "white"
color = "black"
```

Here is a list of many of the colors Easy Draw supports.&#x20;

![](/files/-MRXvW9MQdNr9hwdQbxQ)

{% hint style="info" %}
Easy Draw uses all Tkinter color values.  Any Tkinter color value will work in Easy Draw.
{% endhint %}

## 2. RGB Value

You can define a color as a tuple with 3 color values representing red, green, and blue.  This is know as “RGB”.  RGB stands for Red, Green, and Blue.  We specify how much red, green, and blue to use by a number range of 0-255. No light is zero. Turn the light on all the way on and it is 255. We need three numbers to specify three colors, so (0, 0, 0) means no red, no green, no blue -- Black.&#x20;

Here are some other examples:

| **Red** | **Green** | **Blue** | **Color** |
| ------- | --------- | -------- | --------- |
| 0       | 0         | 0        | Black     |
| 255     | 255       | 255      | White     |
| 127     | 127       | 127      | Gray      |
| 255     | 0         | 0        | Red       |
| 0       | 255       | 0        | Green     |
| 0       | 0         | 255      | Blue      |
| 255     | 255       | 0        | Yellow    |

Examples:

```python
color = (255, 0, 0)
color = (0, 255, 0)
color = (0, 0, 255)
color = (255, 255, 255)
color = (0, 0, 0)
```

## 3. Hex Value

Hex color values represent color in the same way as RGB, but instead of decimal (base 10) number values they use hexadecimal (base 16) values. &#x20;

A hexadecimal color is specified with: `#RRGGBB`.

RR (red), GG (green) and BB (blue) are hexadecimal integers between 00 and FF specifying the intensity of the color.

For example, `#0000FF` is displayed as blue, because the blue component is set to its highest value (FF) and the others are set to 00.

Examples:

```python
color = "#FF0000"
color = "#00FF00"
color = "#0000FF"
color = "#FFFFFF"
color = "#000000"
```

## Easy Draw's Color Picker

To make it easy to discover colors, Easy Draw comes with a built in color picker.&#x20;

![](/files/-MRXyPDg6JVk32dFm6uM)

It will look different on different operating systems.&#x20;

![Linux Example](/files/-MRXyCFyyFLx0XEftaXs)

![Windows 10 Example](/files/-MRXyJ94SdgZs5q7XjUa)

But when you select a color, it will display the Hex and RGB value for you to record and use in your program.

![](/files/-MRXy_JDTDfWsVawOlty)


---

# 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://easy-draw.joemazzone.net/python/module-reference/colors.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.
