Free · no signup · browser-local

HEX to RGB and HSL Color Converter With Alpha

Convert HEX, RGB and HSL colors in either direction. Adjust the color channels or opacity, preview the result and copy the CSS color value you need.

Browse all tools →

Color input

LOCAL
Examples: #ACCDEA · rgba(172, 205, 234, .5) · hsl(208, 60%, 80%)
RGB channels
HSL channels
Converted valuesAlpha preserved
HEX#ACCDEA
RGBrgb(172, 205, 234)
HSLhsl(208, 60%, 80%)

Getting started

Enter a HEX, rgb(a) or hsl(a) value, refine RGBA or HSLA channels, then copy the format you need.

Before you use the result

This supports comma-separated CSS RGB/HSL and HEX 3/4/6/8, rather than every CSS Color 4 syntax.

Try an example

Convert #ACCDEA to RGB and HSL, then adjust alpha for a translucent overlay.

How it works

RGB and HSL are converted mathematically; alpha is rounded to three decimals for CSS display.

Frequently asked questions

Convert HEX, RGB and HSL colors with alpha preservation and a live preview.

How do I use HEX, RGB & HSL Color Converter?

Enter a HEX, rgb(a) or hsl(a) value, refine RGBA or HSLA channels, then copy the format you need.

Does this tool upload my data?

Inputs and files are processed in your browser. Page-view analytics do not contain your tool input.

What should I check before using the result?

This supports comma-separated CSS RGB/HSL and HEX 3/4/6/8, rather than every CSS Color 4 syntax.