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 · When to Format or Minify HTML, CSS and JavaScript


Avatar

DTool Team

Product Team

We build simple, reliable browser tools that make everyday digital work faster.

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

Learn how we use cookies