Skip to main content

Hex to RGB

Convert hex color codes to rgb() values.

What does this tool do?

Direct answerHex to RGB splits the 6-digit code into three 2-digit channels: red, green, blue.
Key factEach channel is one byte (00–FF); #f63 expands to #ff6633.
ProcessingRuns locally in your browser; no data is sent to a server.

How to use

  1. Type a hex color like #ff6347.
  2. Click Convert.
  3. See the rgb() value.

Example

Input

#ff6347

Output

rgb(255, 99, 71)

Who is this for?

This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.

Programmers working with low-level data, computer science students, and electronics hobbyists reading registers — anyone tired of converting number bases by hand.

Frequently asked questions

What is #ffffff?

rgb(255, 255, 255) — white.

Do I need the # prefix?

Optional — ff6347 works.

3-digit shorthand?

Yes, each digit doubles: #abc → #aabbcc.

More tools in this category