---
title: "Color.ToName"
url: "https://reference.aspose.com/html/net/aspose.html.drawing/color/toname/"
product: "Aspose.HTML for .NET API Reference"
description: "Color ToName method. Returns the name of the color if it matches a color in the list of CSS named colors or an empty string"
---

## Color.ToName method

Returns the name of the color if it matches a color in the list of CSS named colors, or an empty string.

```csharp
public string ToName()
```

### Return Value

A color name.

### See Also

* class [Color](../)
* namespace [Aspose.Html.Drawing](../../../aspose.html.drawing/)
* assembly [Aspose.HTML](../../../)
