BaroBenchYour digital workbenchWorkbench
KOEN한국어로 전환
Your inputs and files are processed in this browser.Ready without an account

HEX, RGB & HSL color converter

Convert color codes including alpha and preview the resulting color.

Processed in this browser · nothing is uploaded

Input & options

Result

Ready when you are

Enter your input and run the tool to see your result here.

Good to know

Supports 3/4/6/8-digit HEX plus RGB(A) and HSL(A). HSL saturation and lightness require %. Named colors are not supported; invalid channel ranges produce errors.

For example
Color code: #244de5
FIELD NOTES

Understand and use your results

Compare equivalent HEX, RGB and HSL representations for design work. A preview depends on the display and surrounding background, so check the code as well as its appearance.

How to use it

  1. Enter a HEX, RGB(A) or HSL(A) value.
  2. Inspect the converted codes and opacity, then copy the format you need.

Worked example

Input and options
#ff0000
Result or interpretation
rgb(255, 0, 0)
hsl(0, 100%, 50%)

RGB describes red, green and blue channels; HSL describes hue, saturation and lightness. Alpha is also converted when present. Display precision can introduce small rounding differences on a round trip.

Can I enter named colors or CSS variables?

Named colors such as red and expressions such as var(--color) are unsupported. Enter numeric codes instead. HSL saturation and lightness need %, and this tool does not assess contrast or accessibility compliance.

Unexpected result? Report a problem

What are you working on?

↑ ↓ navigate · Enter open · Esc close