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.
#3A7Expected 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
DTool Team
Product Team
We build simple, reliable browser tools that make everyday digital work faster.