Utilo

Hex to RGB Converter – Free, Online, Private

Convert a hex color to an rgb() triplet. Three-digit and six-digit forms are accepted.

Input
Output

How to convert Hex to RGB

  1. Paste #6366f1 or 6366f1. A three-digit form such as #abc is expanded.
  2. Read rgb(r, g, b) with channels from 0 to 255.
  3. Copy it into a CSS rule or a design token.

Digits

A six-digit hex color is three bytes: red, green and blue, each pair parsed as a base-16 integer. A three-digit form doubles each digit, so #abc is #aabbcc. The leading hash is optional. Alpha digits are not read. #6366f180 is an 8-digit color and this page rejects it rather than dropping the alpha silently. Upper and lower case are the same. Separators such as commas are not hex and fail the parse, which stops a pasted rgb() value from being misread. Use the RGB to hex page for that direction.

Range

Each channel is an integer from 0 to 255. There is no floating-point hex. The result is the CSS rgb() function with commas, which every browser still accepts. The space-separated modern syntax is not required for the value to work. The page does not convert to OKLCH. The full color tool on Utilo does that, and it is linked from the main tools list. This page is the direct hex to RGB question.

Worked example

#6366f1 is the indigo used in this site's accent. The bytes are 0x63, 0x66 and 0xf1, which are 99, 102 and 241. The line you copy is rgb(99, 102, 241). #fff expands to rgb(255, 255, 255). #000 is rgb(0, 0, 0). Pasting the rgb line into the RGB to hex page returns #6366f1 in lowercase.

Design handoff

Hex is what design tools copy. rgb() is what a canvas or a WebGL clear color sometimes wants as numbers. Splitting the triplet is obvious once you see it, and doing it by hand is how off-by-one channel bugs start. The conversion is local and instant.

Frequently asked questions

Do I need the hash?

No. 6366f1 and #6366f1 are the same color on this page.

Are three-digit colors expanded?

Yes. Each digit is repeated, which is the CSS rule.

What about #RRGGBBAA?

Eight digits are rejected. Strip the alpha or use the full color tool if you need it.

Is the color uploaded?

No.