Color · Made a little simpler

HEX to RGB

Convert CSS color names, HEX, RGB/RGBA, and HSL/HSLA to their sRGB values. Edit channels, preserve decimal alpha, inspect normalized values, and keep a local swatch collection.

Also known asHEX to RGB converter · RGB to HEX · HEX to RGBA · HEX to RGB color converter · RGB to HEX converter

Your workspaceProcessed on your device
#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Three small steps.

  1. Enter a valid HEX color, with or without #.
  2. Inspect RGB channels and alpha.
  3. Copy a value or edit the channels to convert back to HEX.

A few things to know.

RGB output uses 8-bit sRGB channels. Decimal alpha is preserved in RGB/HSL; HEX rounds alpha to the nearest 1/255 step. HSL input requires percentage saturation and lightness. Normalized/percentage displays are rounded. The 148 standard CSS color names and transparent are supported. Context-dependent system colors, currentcolor, relative colors, and calc() are unsupported. No color-space conversion is implied.

How your privacy works →

A little more clarity.

What do four and eight HEX digits mean?

The last component represents alpha. For example, #0008 expands to #00000088: black with alpha 136/255.

Does HEX to RGB change the color?

No. HEX and RGB here describe the same sRGB channel values in different notation.

Related searcheshex to rgba converter · hex to rgb 0-1