---
title: "to_name method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.drawing/color/to_name/"
product: "Aspose.SVG for Python via .NET API References"
---


## to_name {#}

Returns the name of the color if it matches a color in the list of CSS named colors, or an empty string.


### Returns 


A color name.


```python
def to_name(self):
    ...
```





### See Also
* module [`aspose.svg.drawing`](../../)
* class [`Color`](/svg/python-net/aspose.svg.drawing/color)
