Hex to RGB Converter
Convert #RGB or #RRGGBB colours into CSS rgb() values and individual red, green, and blue channels.
Open toolConvert whole-number RGB channels into an uppercase six-digit hex colour. Enter red, green, and blue values from 0–255, then preview and copy the result.
Update the inputs to see your result.
Result will appear here
Three whole-number RGB channels become three two-digit hexadecimal pairs.
Each whole-number channel is converted into two hexadecimal digits with a leading zero when needed. The three pairs are joined after a hash in red, green, blue order and formatted with uppercase letters.
Only opaque 24-bit RGB colours are included. Alpha/transparency is not modelled.

Enter three whole number channels in red, green and blue order.
Enter red, green, and blue as whole numbers from zero to 255. Keep the channel order clear when copying values from another source. The current form represents an opaque RGB colour without an opacity input.
Select Convert color and read the uppercase six-digit hex output beside the matching preview. Each RGB channel becomes a two-digit hex pair, including a leading zero when needed. The three pairs are combined in red, green, blue order.
Review the supporting CSS RGB expression, then use Copy result or select the generated hex text. Keep the leading hash where the destination expects CSS notation. The output does not include transparency or apply the colour to another website.
The conversion changes notation while preserving supported opaque channel values.
A hypothetical RGB color with channels 170, 187 and 204 produces #AABBCC. Use the red, green and blue fields in that order. The example provides a clear check on the conversion without claiming a particular display or profile match.

Copy the hex result when a CSS rule or design token expects that notation. Place it in the intended property yourself. This page does not edit the target style or decide whether the color provides enough contrast against surrounding content.

Enter the generated hex into Hex to RGB Converter and compare all three channels with the originals. This verifies notation consistency for the accepted opaque values. The reverse check does not add an alpha channel or convert the color into another space.

Read the paired channel order and uppercase opaque-colour output.
The output uses two hexadecimal digits for each channel and uppercase letters. It is a six digit opaque RGB color with a leading hash. The CSS RGB line and preview describe the same channel values.
The form does not include alpha, transparency or a color profile choice. Its swatch is a browser preview of the value. It does not evaluate a whole design or measure how a physical display reproduces that color.

Check integer channel bounds and the destination’s expected notation.
Each channel must be an integer within the accepted range. Fractional channels or numbers outside zero to two hundred fifty five are rejected. Check a copied RGB value for swapped channels or an extra alpha component before entering it.
An rgba value needs its transparency preserved separately in a suitable format. This converter returns opaque hex only. Use Color Contrast Checker for a foreground and background pair, keeping that accessibility calculation separate from simple notation conversion.

Convert #RGB or #RRGGBB colours into CSS rgb() values and individual red, green, and blue channels.
Open toolCalculate the WCAG 2 contrast ratio and AA/AAA results for normal and large text.
Open toolGenerate a two-color linear gradient or a circular radial gradient with a browser preview.
Open toolChoose another tool for your next calculation, conversion, or text task.
Create an ICO and common PNG favicon sizes from a raster image.
Open toolConvert a WebP image into a downloadable multi-size ICO file.
Open toolCreate a downloadable word cloud from the most frequent terms in your text.
Open toolA free adult BMI calculator with metric inputs, a clear BMI category, and the calculation shown.
Open toolEnter whole-number red, green, and blue channels to generate an uppercase six-digit hex colour.
Answers about using RGB to Hex Converter and understanding its results.
Each channel must be a whole number between 0 and 255.
Yes. Output uses uppercase A–F.
No. Each channel must be a whole number between zero and 255.
No. This converter outputs an opaque six-digit RGB hex colour. It does not include an alpha channel.