HEX to RGB

Read the three decimal channels of an opaque CSS color from its short hex form.

Read the three decimal channels of an opaque CSS color from its short hex form.

How to use

  1. Enter #3A7 with the leading #.
  2. Convert the color to RGB and read the channels in red, green and blue order.
  3. Check the conversion independently by expanding #3A7 to #33AA77 and reading each pair in decimal.

Worked example

Input

#3A7

Expected result

rgb(51, 170, 119)

Check the result

Those pairs give 51, 170 and 119, matching the CSS result.

Continue with another guide

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

Learn how we use cookies