
## from_string {#str}

Parses string containing the CSS color and returns a new Color.


### Returns 


A new instance of the [`Color`](/html/python-net/aspose.html.drawing/color) class


```python
def from_string(self, color):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| color | str | A string containing the color in the format RGB, HEX, HSL, HSV, HWB, CMYK, NCOL, LCH, OKLCH, LAB or OKLAB |



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