Skip to content

HEX to RGB FREE

Paste a hex colour and get the RGB values, along with every other notation the same colour has. Three, four, six and eight digit hex all work.

Free to use No registration Privacy-first

HEX, rgb(), hsl(), hwb(), oklch(), oklab(), lab(), lch(), color(display-p3 ...) or a CSS colour name.

Recent

Picker and conversions

217°
100%

Every notation

Technical details

Every conversion, palette and contrast figure on this page is computed in your browser. An image you drop in is read on a canvas in this tab and is never uploaded.

How it works

How the conversion is done

A hex colour is three or four channel values written in base 16, so the conversion is exact rather than approximate: #2563EB is rgb(37 99 235), and #2563EB80 carries an alpha of 128/255. Three and four digit forms are expanded the way CSS expands them, so #2af means #22AAFF and not #2A0F0F.

The same colour is shown at once in HSL, HWB, OKLCH, OKLab, Lab and Display P3, because the reason for converting is usually to paste it somewhere else. Everything is computed in this tab and nothing is sent anywhere.

Build a better web, faster.

We build custom software and solutions tailored to your needs.

Get in touch