Hex to RGB / HSL converter

Convert a 3- or 6-digit hexadecimal color to RGB and HSL notation.

Graphics Stateless

Use #RGB or #RRGGBB, with an optional #. Alpha channels are not supported.

How it works and examples

Use three or six hexadecimal digits with an optional #. Alpha channels and color names are not accepted. RGB channels range from 0 to 255; HSL is rounded to one decimal place. Example: #369 expands to #336699 and rgb(51, 102, 153).