HEX to RGB Converter
Convert HEX colors to RGB instantly. Paste a value below and copy the result.
Also in
About this conversion
HEX is the most common way to write colors on the web: a # followed by six hexadecimal digits, two each for the red, green, and blue channels (00-FF). Shorthand three-digit codes like #FA0 expand each digit, and the format maps one-to-one to RGB.
RGB describes a color by its red, green, and blue light components, each from 0 to 255. It matches how screens physically produce color, which makes it the natural format for programmatic color manipulation in CSS and JavaScript.
Converting HEX to RGB is a direct translation: each pair of hex digits is read as a base-16 number, giving the 0-255 value for that channel. No rounding or color math is involved, so the conversion is exact in both directions.