Back

Color converter

Color and palettes

Loading

Loading tool

Preparing the tool. The remaining time is not yet known.

All processing for this tool happens in your browser. Your input is not sent to a server.

About this tool

Convert a three- or six-digit HEX color to RGB and HSL.

Common uses

  • Convert a three- or six-digit HEX color to RGB and HSL.
  • Enter a HEX value such as #336699 or #369.

How to use it

  1. 1.Enter a HEX value such as #336699 or #369.
  2. 2.Inspect the swatch and copy HEX, RGB or HSL output.

Worked example

Input and result

#369
#336699 / rgb(51, 102, 153) / hsl(210, 50%, 40%)

Three-digit HEX expands each digit before RGB/HSL conversion.

Limits and notes

  • Input is HEX only, with an optional #; alpha channels and CSS color names are not accepted. HSL output is rounded to integers.

Frequently asked questions

What does this tool do?

Convert a three- or six-digit HEX color to RGB and HSL.

What should I check before using the result?

Input is HEX only, with an optional #; alpha channels and CSS color names are not accepted. HSL output is rounded to integers.

Related tools