HEX/RGB Converter

Convert colors between HEX, RGB, RGBA, HSL and HSV. Live color preview and one-click copying.

Loading tool…

How to use the HEX/RGB Converter

Translate a color from one notation to another — HEX to RGB, RGB to HSL and more — with a live swatch preview. Perfect for matching design specs to CSS values and experimenting with color formats.

  1. 1Enter a color in any format, or pick one with the color wheel.
  2. 2See it converted to HEX, RGB, RGBA, HSL and HSV instantly.
  3. 3Adjust the sliders to fine-tune the color.
  4. 4Copy the format you need for your CSS.

Frequently asked questions

What is the difference between HSL and RGB?

RGB mixes red, green and blue light. HSL describes a color by its hue, saturation and lightness, which is often easier to adjust by hand.

Does it support alpha transparency?

Yes. RGBA and 8-digit HEX values include an alpha channel.