Design / Media

Color Converter

Convert HEX, RGB, and HSL values with a live color swatch.

Processed entirely in your browser. Nothing is uploaded.

Input

Output

HEX  #FF7A00
RGB  rgb(255, 122, 0)
HSL  hsl(29, 100%, 50%)

Valid color.

About

About this tool

Designers and developers write colors in different formats: HEX codes like #1A73E8, RGB values, and HSL values. Moving between them by hand means doing math.

Enter a color in any of the three formats, or pick one with the color chooser, and this tool shows the other two with a live swatch. It runs in your browser.

Quick guide

How to use

  1. Enter a HEX, RGB, or HSL value, or choose a color.
  2. Check the swatch to confirm it is the color you meant.
  3. Copy the format you need for your CSS, design tool, or document.
Ideas

When to use it

  • Turn a HEX code from a design into RGB for code
  • Find an HSL value to adjust lightness or saturation
  • Match a color across different tools
  • Check what a color looks like before using it
Common questions

Frequently asked questions

Which HEX formats work?

Three-digit and six-digit HEX values are supported.

Are converted values exact?

Displayed HSL values are rounded to whole numbers for readability.