Skip to content

RGB to Hex Converter

Enter red, green and blue values between 0 and 255 and get the matching HEX code. This is handy when a design gives you RGB numbers, such as the arguments of Power Fx RGBA(), and you need a HEX value for CSS or branding documents.

Also known as: rgb to hex converter, convert rgb to hex, rgb to hex color, rgb to hex code.

HEX#742774
RGBrgb(116, 39, 116)
Power FxRGBA(116, 39, 116, 1)

Your data is processed locally in your browser and is not uploaded to our servers.

Features

  • Red, green and blue inputs with a live preview
  • Values are kept within 0 to 255
  • Copy HEX, rgb() or RGBA() with one click

How to use the RGB to Hex Converter

  1. Enter the red, green and blue values.
  2. Read the HEX code next to the preview.
  3. Copy the format you need.

Examples

Power Apps purple

rgb(116, 39, 116)  ->  #742774

White

rgb(255, 255, 255)  ->  #FFFFFF

Frequently asked questions

How do you convert RGB to HEX by hand?

Convert each of the three values to base 16 and join them, adding a leading zero when needed. For example 116 is 74 and 39 is 27, so rgb(116, 39, 116) is #742774.

What if my RGB value is above 255?

RGB channels only go from 0 to 255, so the converter limits each value to that range.

Related tools