---
title: shadowColor
framework: webkitjs
role: symbol
role_heading: Instance Property
path: webkitjs/canvasrenderingcontext2d/1629275-shadowcolor
---

# shadowColor

A string that contains the RGBa color value of shadows.

## Declaration

```data
attribute DOMString shadowColor;
```

## Discussion

Discussion The value may be any CSS color value. If the alpha value of shadowColor is nonzero, shadows are cast, provided that at least one of the three properties shadowBlur, shadowOffsetX, or shadowOffsetY is also nonzero.

## See Also

### Working with Shadows

- [clearShadow](webkitjs/canvasrenderingcontext2d/1634057-clearshadow.md)
- [shadowBlur](webkitjs/canvasrenderingcontext2d/1632236-shadowblur.md)
- [shadowOffsetX](webkitjs/canvasrenderingcontext2d/1632399-shadowoffsetx.md)
- [shadowOffsetY](webkitjs/canvasrenderingcontext2d/1633455-shadowoffsety.md)
