DigitalDany

Productivity

Color Converter

Convert HEX, RGB and HSL colour values, preview the colour instantly and copy the format you need.

  • HEX ⇄ RGB ⇄ HSL conversion
  • Live colour swatch
  • Copy any format for your stylesheet

Local processing. Everything you type stays in this browser tab — nothing is sent to a server, and no account is required.

Works on desktop and laptop screens Responsive — usable on phones and tablets

Preview

HEX

#2563eb

RGB

rgb(37, 99, 235)

HSL

hsl(221, 84%, 53%)

CSS snippet

color: #2563eb;

How it works

Design systems mix notation: HEX in design tools, RGB in legacy stylesheets, HSL when you want to reason about lightness. This converter translates between the three, shows a live swatch of the result and hands you a ready-to-paste CSS declaration.

Using the tool

  1. Type a value — #2563eb, rgb(37, 99, 235) or hsl(221, 84%, 53%) all work — or pick a colour with the swatch input.
  2. The preview and all three notations update as you type.
  3. Copy the notation you need, or grab the CSS snippet at the bottom.

Everything runs locally in this browser tab. See the full list of online tools for more utilities, or browse the SaaS directory if you are evaluating software rather than running a quick conversion.

Frequently asked questions

Which formats are accepted?
Three-digit and six-digit HEX (with or without the leading #), rgb()/rgba() with decimal values, and hsl()/hsla() with a degree hue and percentage saturation and lightness.
Why is my HEX not matching the design tool?
Design tools often display sRGB values that include an alpha channel. This converter works on fully opaque colours, so strip the last two digits of an eight-digit HEX first.
Does the colour picker store anything?
No. The value lives in the page only; nothing is sent to a server or written to storage.