HTML Runner

Color Converter

Convert HEX, RGB and HSL notation, including transparency, and preview the resulting color.

How to use Color Converter

Enter a CSS color and compare the HEX, RGB and HSL outputs. Use the one that fits your stylesheet.

Limitations

HEX rounds channels to 8-bit values. Named colors, wide-gamut spaces and relative color syntax require other tools.

Frequently asked questions

Where is alpha stored in HEX?

An eight-digit HEX color has alpha in the final pair of digits.

Test your web code in the live HTML workspace.

Related resources