Hex / RGB / HSL Converter

Convert a valid colour between Hex, RGB, and HSL formats.

Scope: Conversion supports opaque sRGB colours; alpha channels are not included.

Workbench

Inputs stay on this page.

How to use Hex / RGB / HSL Converter

  1. Enter a colour as #RGB, #RRGGBB, rgb(r, g, b) or hsl(h, s%, l%).

  2. Press “Convert colour”.

  3. Copy the Hex, RGB or HSL value you need.

About this tool

Convert a colour between Hex, RGB and HSL, for example #1E90FF to rgb(30, 144, 255), with a preview swatch of the result.