About this tool
Pick a color or type a HEX value and instantly see its RGB and HSL equivalents with a live swatch. Click any value to copy it. Great for CSS, design systems and matching brand colors.
Type a 3-digit or 6-digit HEX code, with or without the leading #, or use the colour picker. The tool shows the matching rgb() and hsl() values, rounded to whole numbers, and updates the swatch. For example, the default #ff5e1a is rgb(255, 94, 26) and hsl(18, 100%, 55%).
Because RGB and HSL are rounded, converting a value back may differ by one step in a channel. Eight-digit HEX codes with an alpha channel are not supported.