---
title: "to_html method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/colortranslator/to_html/"
product: "Aspose.CAD for Python via .NET API References"
---


## to_html {#aspose.cad.Color}

Creates HTML color  from the color.


### Returns 


The html string color.


```python
def to_html(self, c):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| c | [`Color`](/cad/python-net/aspose.cad/color) | The color class. |



### See Also
* module [`aspose.cad`](../../)
* class [`ColorTranslator`](/cad/python-net/aspose.cad/colortranslator)
