HEX to RGB

HEX to RGB

Convert a three- or six-digit hexadecimal color to CSS RGB.

Try this example

Enter #3A7. Each digit expands to a pair: #33AA77. Compare the three decimal channel values.

#3A7

Expected result

rgb(51, 170, 119)

This example is an opaque color. An alpha channel is a separate value and is not shown in the RGB result.

Related walkthrough · Prepare a safe test copy before using an online tool

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies