Skip to content

Design

Color Converter

Convert colors between HEX, RGB and HSL with a visual preview.

Loading tool…

Find this tool in

Helpful references

About this tool

What is Color Converter?

Describe an opaque color in HEX, RGB or HSL so it can be used in the notation expected by a stylesheet or design handoff. These notations describe the same intended color in different ways. HSL can make hue adjustments easier to reason about, but its lightness number is not a text-contrast measurement.

A worked example

Recognize red across three common notations

Example input

#ff0000

Expected result

rgb(255, 0, 0)
hsl(0, 100%, 50%)

Enter the HEX value and compare the generated RGB and HSL values. The RGB channels use full red with no green or blue; HSL describes the red hue at full saturation and midpoint lightness. Use the color in its actual foreground/background pair before deciding whether it is readable for text.

Common mistakes and limits

  • Numerically different color pairs can have poor luminance contrast. Use the contrast checker instead of judging accessibility from hue alone.
  • A color notation is not a measurement of a physical display or material. Image color management, transparency and the destination environment can affect appearance.

Features

What you can do

  • Convert HEX colors into RGB and HSL.
  • Convert RGB and HSL values back into HEX.
  • Select colors using the browser color picker.
  • Edit individual RGB and HSL channels.
  • Copy each generated color representation.
  • Generate lighter and darker color variants locally.

Frequently asked questions

Questions about Color Converter

What is the difference between RGB and HSL?

RGB describes colors using red, green and blue light values. HSL describes them using hue, saturation and lightness, which can be more intuitive when creating color variations.

Does HEX support transparency?

Eight-digit HEX values can include an alpha channel, but this first version focuses on six-digit opaque HEX colors.

Why can converted values differ slightly?

Some conversions require rounding decimal values, so converting repeatedly between formats may produce very small numerical differences.

Are selected colors uploaded?

No. All color calculations happen entirely inside your browser.

Related tools