Convert Color to HEX (ASP.NET)

Converts a color to the equivalent hexadecimal representation.

Availability

Available from the context menu or via shortcuts:

  • when the caret is on an RGB css function, or on a named color css identifier reference.

Example

<div style="background-color:Green">

or

<div style="background-color:rgb(0, 128, 0)">

Result:

<div style="background-color:#008000">

Screenshot

rsConvertColorToHex