# \*TOOLS/CONVERTHTMLCOLOR Convert HTML Color Name into Hex Color

> Source: https://manual.pvxplus.com/utilities/converthtmlclr

## Invocation

**CALL "\*tools/converthtmlcolor"**,*htmlcolorname$*,*outputhexcolor$*

***Where:***

|  |  |
| --- | --- |
| *htmlcolorname$* | Name of the HTML color to convert. |
| *outputhexcolor$* | Output string where the Hex color is returned. |

## Description

Convert HTML color name into Hex color.

*(The ConvertHTMLColor utility was added in PxPlus 2021.)*

## Example

CALL "\*tools/converthtmlcolor","DarkGoldenRod",*hexcolor$*

***Where:***

*hexcolor$* will be "#b8860b" (the Hex color of the HTML color "DarkGoldenRod").

## See Also

**[\*TOOLS/PrintHTML](https://manual.pvxplus.com/utilities/printhtml)**  
FIN **[CurFont](https://manual.pvxplus.com/functions/fin#curfont)** and **[CurColor (CurColour)](https://manual.pvxplus.com/functions/fin#curclr)**
