Color Converter

Convert HEX to RGB, RGB to HEX, and between HSL, HSV and HEX8 online for free. Enter any colour code and get instant conversions in different formats.

About this tool

The Color Converter converts any color code or color name between HEX, RGB, HSL, HSV, and HEX8 formats. Type or paste the value in the input field and all equivalent formats will appear instantly. Each result has a copy button so you can use it directly in your projects.

Use Cases

  • Web & UI DesignConvert HEX codes from design tools like Figma into RGB or HSL values for CSS variables.
  • Cross-format DevelopmentSwitch between color formats required by different frameworks, languages, or rendering APIs.
  • Accessibility & ThemingUse HSL values to adjust lightness and saturation when building accessible color palettes.

How to Use the Color Converter

1

Enter a Color

Type any valid color code (HEX, RGB, HSL, color name) into the input field.

2

Copy and Use

Click the copy icon next to any format to send it directly to your clipboard.

Questions and Answers

What color formats are supported as input?

You can enter HEX (#fff, #ffffff), RGB (rgb(255,255,255)), HSL, HSV, named colors (red, blue), and more. Any format recognized by the CSS specification is accepted.

What is HEX8?

HEX8 is an 8-digit hexadecimal color that includes an alpha (transparency) channel, for example #ffffffff. It is supported in modern CSS and some design tools.

How do I convert a HEX color to RGB?

Paste your HEX code (e.g. #ff5733) into the input field. The tool instantly shows the equivalent RGB, HSL, HSV and HEX8 values. Click the copy icon next to RGB to use it directly in your CSS or code. The reverse — RGB to HEX — works the same way.

See also