Text utilities

HEX to RGB Converter

Convert a six-digit hexadecimal color to CSS RGB notation.

Text stays in your browserCopy your result

Input workspace

Runs on your device

OUTPUT WORKSPACE

Your result

Let’s calculate.

Use the Calculate button to see your result.

Your content is processed locally.

How to use this tool

  1. Enter hex color (#rrggbb).
  2. Select Update result to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Read each two-digit hexadecimal component as an integer from 0 to 255.

A WORKED EXAMPLE

#2855ec becomes rgb(40, 85, 236).

What to keep in mind

Requires six digits and a leading #. Alpha transparency and shorthand hex are not supported.

Common questions

How does this tool handle my input?

Processing happens in your browser. Your pasted content is not uploaded, included in URLs or stored as a calculation history.

What input should I use?

Hex color (#RRGGBB): use the example already shown, then replace it with your own content. Requires six digits and a leading #. Alpha transparency and shorthand hex are not supported.

Methodology maintained by ClarityKit. How these tools are built and checked.