Got a colour as a hex code from a design file or a brand sheet and need it as RGB numbers for code or an image editor? This free hex to rgb converter turns #FF5733 into rgb(255, 87, 51) instantly, with a live swatch so you can see the colour before you paste it anywhere. Everything runs in your browser, so nothing is uploaded and no signup is needed.

How to use this hex to rgb converter

Three quick steps — paste, read, copy.

1Paste the hex code

Enter a 6-digit code like #FF5733, a 3-digit shorthand like #F53, or the code without the leading #.

2Check the swatch

Read the red, green and blue values from 0 to 255 and confirm the preview matches the colour you expected.

3Copy the RGB value

Copy rgb(255, 87, 51) straight into your CSS, canvas code or design tool.

Why this hex to rgb converter keeps the colour exact

Built to be free, private, and exact — right in your browser.

Exact, not approximate

HEX and RGB are two notations for the same sRGB colour, so converting between them loses nothing — each hex pair maps to one decimal number.

Shorthand understood

A 3-digit code is expanded by doubling each digit, so #F53 becomes #FF5533 before it is converted.

Swatch before you paste

The preview catches typos that numbers alone hide: a wrong digit shows up as the wrong colour at a glance.

Built for CSS and code

The output is written as rgb(R, G, B), ready to paste into a stylesheet, a canvas call or an image-processing script.

HEX to RGB Converter FAQs

Short, direct answers to the questions readers ask most.

Split the code into three pairs and read each pair as a base-16 number: #FF5733 gives FF = 255, 57 = 87 and 33 = 51, so rgb(255, 87, 51).

Yes. Each digit is doubled, so #F53 expands to #FF5533 and converts to rgb(255, 85, 51).

Yes, for ordinary screen colours. Both describe the same red, green and blue channels, only written differently.

Hex is base 16, so after 0–9 it uses A–F for 10–15; FF is therefore 15 × 16 + 15, which is 255.

Yes. It converts entirely in your browser — no account, no signup and no upload.