Skip to content

Color Converter

Type a color in any common form (#ff8800, rgb(255, 136, 0), hsl(32, 100%, 50%) or a name like orange) and get the same color as HEX, RGB, HSL and HSV, with a swatch to check it. Transparency is supported, in 8-digit hex and in rgba and hsla.

HEX#ff8800
RGBrgb(255, 136, 0)
HSLhsl(32, 100%, 50%)
HSVhsv(32, 100%, 100%)

How it works

  1. Type or paste a color, or pick one with the color picker.
  2. Read it as HEX, RGB, HSL and HSV.
  3. Add a transparency value if you need one, for example rgba(255, 136, 0, 0.5).
  4. Copy the format you need.

What people use it for

  • From design to CSS

    Turn a HEX value from a design file into the hsl() form your stylesheet uses.

  • Making a palette

    Change only the lightness in HSL to get lighter and darker versions of a color.

  • Adding transparency

    Get the 8-digit hex or the rgba() form of a color with partial opacity.

Questions

What formats can I type?
HEX with 3, 4, 6 or 8 digits, with or without #; rgb() and rgba() with numbers or percentages, with commas or spaces and an optional slash before the opacity; hsl() and hsla(); and about twenty common color names.
Why do HSL values look rounded?
Hue is shown in whole degrees and saturation, lightness and value in whole percents, as CSS tools usually do. Converting a rounded HSL value back can land one step away on a channel, because HEX has 256 levels and HSL here has fewer.
What is the difference between HSL and HSV?
Both use the same hue. HSL describes lightness from black to white through the pure color, while HSV (also called HSB) describes brightness from black to the pure color. Design tools often use HSV; CSS uses HSL.
Does it give CMYK for printing?
No. A true conversion to CMYK depends on the printer and paper profile, so a formula would be misleading. The values here are for screens.