Converter

Color Converter

Convert a HEX, RGB, or HSL color into canonical HEX, RGB, and HSL values without leaving your browser.

Convert a color

Use #RGB or #RRGGBB, rgb(r, g, b), or hsl(h, s%, l%) for the selected format.

How to use this color converter

Choose the format you have, enter one color, and receive three canonical values locally in your browser.

  1. Choose whether your source value is HEX, RGB, or HSL.
  2. Enter the value in the matching format, then select Convert.
  3. Review the canonical HEX, RGB, HSL, and preview, then use Copy result when you need all three values.

Frequently asked questions

Which HEX values are accepted?
Use only #RGB or #RRGGBB. Letter case is accepted, but every result uses an uppercase six-digit HEX value.
Can HSL hue be negative or greater than 360?
Yes. The hue is normalized with mathematical modulo, so 360 becomes 0 and negative finite hues wrap into the standard 0 through less-than-360 range.
Does this tool support transparency or other color models?
No. This focused converter supports opaque HEX, RGB, and HSL values only; alpha channels, named colors, pickers, palettes, and other color spaces are outside its scope.

Convert common measurements alongside your color value.