Tool
HEX to RGB Converter
Paste a hex color code and instantly get the red, green, and blue values. Click the colour swatch to use a visual picker.
rgb(28, 96, 246)color: rgb(28, 96, 246);About the HEX to RGB Converter
HEX and RGB are two ways of expressing the same thing — a colour made from red, green, and blue channels. HEX is the shorthand used in HTML and CSS (like #1c60f6). RGB is the numerical form that some design tools, image editors, and programming libraries require.
Each pair of characters in a hex code represents one colour channel in base 16. The first two digits are red, the middle two are green, and the last two are blue. Converting to RGB gives you three numbers between 0 and 255 — the exact values each channel is set to.
This tool also outputs the CSS-ready rgb() function so you can paste it directly into your stylesheet.
Need the reverse? Convert RGB to HEX →
Explore more free tools: RGB to HEX · JPG to PNG · Word Counter