RGB to Hex Colour Converter

Convert RGB colours to HTML hex colours and HTML hex colours to RGB. If JavaScript is enabled, the values are updated directly and a preview of the colour is shown.

Enter RGB values:

Enter hex value:

Colour Preview