Skip to content

Color Converter

Convert colours between HEX, RGB and HSL with a live preview.

HEX
#3b82f6
RGB
rgb(59, 130, 246)
HSL
hsl(217, 91%, 60%)

About the Color Converter

Design tools, CSS and image editors all prefer different colour notations. Enter a colour in any supported format and copy it in the one you need.

A large live swatch shows the exact colour so you can verify it at a glance.

How to use the Color Converter

  1. Enter a HEX value, or use the colour picker.
  2. Read the equivalent RGB and HSL notations.
  3. Copy the CSS-ready string.

Examples

InputResult
#3b82f6rgb(59, 130, 246) / hsl(217, 91%, 60%)
rgb(0, 0, 0)#000000

Frequently asked questions

Is alpha transparency supported?

Yes — 8-digit HEX values and rgba/hsla output include the alpha channel.

Is my data sent to a server?

No. This tool runs entirely in your browser using JavaScript. Nothing you enter is uploaded, logged or stored by AHRATOOLS.