---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/graphics.style.color.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/graphics.style.color.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt

# graphics.style.color

Static object.

Sets the color of a graphic shape in the formats #RGB,#RGBA,#RRGGBB,#RRGGBBAA,rgb(r,g,b),rgba(r,g,b,a)

**Example:**

```javascript
strokeColor: '#F00';
strokeColor: '#FF0000';
strokeColor: '#FF0000AA';
strokeColor: 'rgba(255,0,0,1)'
```
